@Test(expected = RemoteAccessException.class)
public void testWithFailures() {

    MethodCall request = new BeginTransactionMethodCall();
    MethodCall[] dummyResponses = dummyResponses();
    IllegalArgumentException argumentException1 = new IllegalArgumentException( String.valueOf( System.currentTimeMillis() ) );
    argumentException1.fillInStackTrace();
    dummyResponses[1].setException( argumentException1 );
    IllegalArgumentException argumentException2 = new IllegalArgumentException( String.valueOf( System.currentTimeMillis() ) );
    argumentException2.fillInStackTrace();
    dummyResponses[2].setException( argumentException2 );
    NetworkCommunicationDispatcher.verifyNoExceptions( dummyResponses, messages, request );
}