new Receiver<SimpleFooProxy>() {
@Override
public void onSuccess(SimpleFooProxy response) {
checkReturnedProxy(response, relationsPresent);
SimpleFooRequest editRequest = req.simpleFooRequest();
SimpleFooProxy editableSimpleFoo = editRequest.edit(response);
editableSimpleFoo.setSimpleBarKeyMap( new HashMap<SimpleBarProxy, Integer>());
editableSimpleFoo.setSimpleBarValueMap( new HashMap<Integer, SimpleBarProxy>());
editRequest.persistAndReturnSelf().using(editableSimpleFoo).with(SIMPLE_FOO_RELATIONS).fire(
new Receiver<SimpleFooProxy>() {
@Override
public void onSuccess(SimpleFooProxy returnedProxy) {
assertEquals(0, returnedProxy.getSimpleBarKeyMap().size());
assertEquals(0, returnedProxy.getSimpleBarValueMap().size());