Object[] args = new Object[] {firstArg, new Object[] {}, new Object(), new Object()};
when(soapCall.getSoapClientMethod()).thenReturn(
MockSoapClient.class.getMethod("lotsOfArgsCall",
Object.class, Object[].class, Object.class, Object.class));
when(soapCall.getSoapClient()).thenReturn(new MockSoapClient());
when(soapCall.getSoapArgs()).thenReturn(args);
Object result = soapClientHandler.invoke(soapCall);
assertSame(firstArg, result);