}
@Test
public void createAndUpdateManagedObjectByRemovingFragment() throws Exception {
// Given
ManagedObjectRepresentation rep = aSampleMo().with(new Coordinate()).build();
ManagedObjectRepresentation created = inventory.create(rep);
// When
created.set(null, Coordinate.class);
GId id = created.getId();
created.setId(null);
created.setLastUpdated(null);
ManagedObjectRepresentation updated = inventory.getManagedObject(id).update(created);
// Then
assertNotNull(updated.getId());
assertNull(updated.get(Coordinate.class));
}