This is pretty much the same as bug 078444.
The methods with varargs can't be mocked
Testcase revealing the issue
Better test for varargs
Patch to fix the problem with varargs (fixed)
Seems like originally I've uploaded the wrong file, should be the right one now.