VarArgsConstructorDemo varArgsConstructorDemoMock = mock(VarArgsConstructorDemo.class);
whenNew(VarArgsConstructorDemo.class).withArguments(myFloat, one, two).thenReturn(varArgsConstructorDemoMock);
when(varArgsConstructorDemoMock.getInts()).thenReturn(new int[] { one, two});
int[] varArgs = tested.newVarArgs(myFloat, one, two);
assertEquals(2, varArgs.length);
assertEquals(one, varArgs[0]);
assertEquals(two, varArgs[1]);
verifyNew(VarArgsConstructorDemo.class).withArguments(myFloat, one, two);