}
public void testFailure() throws Exception
{
RemoteCallback callback = (RemoteCallback) newMock(RemoteCallback.class);
RemoteExceptionCoordinator coordinator = (RemoteExceptionCoordinator) newMock(RemoteExceptionCoordinator.class);
Throwable t1 = new RemoteException();
Throwable t2 = new RemoteException();
callback.remoteCallback();
setThrowable(callback, t1);
coordinator.fireRemoteExceptionDidOccur(callback, t1);
callback.remoteCallback();
setThrowable(callback, t2);
coordinator.fireRemoteExceptionDidOccur(callback, t2);
replayControls();
RemoteTemplateImpl rt = new RemoteTemplateImpl();