// no events are fired second time.
assertEquals(1, handler.updateEventCount);
assertEquals(1, handler.totalEventCount);
SimpleFooRequest context = req.simpleFooRequest();
final Request<Void> mutateRequest = context.persist().using(newFoo);
newFoo = context.edit(newFoo);
newFoo.setUserName("Ray");
mutateRequest.fire(new Receiver<Void>() {
@Override
public void onSuccess(Void response) {
// events fired on updates.