SimpleBarRequest context = simpleBarRequest();
SimpleBarProxy willDelete = context.create(SimpleBarProxy.class);
willDelete.setUserName("A");
// Persist the newly-created object
context.persistAndReturnSelf().using(willDelete).fire(new Receiver<SimpleBarProxy>() {
@Override
public void onSuccess(SimpleBarProxy response) {
response = checkSerialization(response);
assertEquals("A", response.getUserName());
// Mark the object as deleted