persistRequest.fire(new SimpleFooFailureReceiver(mutableFoo, persistRequest, null));
}
public void testServerFailureRuntimeException() {
delayTestFinish(DELAY_TEST_FINISH);
SimpleFooRequest context = simpleFooRequest();
SimpleFooProxy newFoo = context.create(SimpleFooProxy.class);
final Request<SimpleFooProxy> persistRequest = context.persistAndReturnSelf().using(newFoo);
final SimpleFooProxy mutableFoo = context.edit(newFoo);
// 42 is the crash causing magic number for a runtime exception
mutableFoo.setPleaseCrash(42);
persistRequest.fire(new SimpleFooFailureReceiver(mutableFoo, persistRequest, null));
}