@Test(expected = ImmutableViolationException.class)
public void testSaveSameObjectTwice() {

  ObjectTypeEntity type = createAndSaveObjectType();
  ObjectEntity object = createObject(type.getId());
  getObjectManager().saveObject(object);
  getObjectManager().saveObject(object);
}