@Test
public void testGetObjectTypeByIdTwiceReturnsSameInstance() {

  ObjectTypeEntity entity = createAndSaveObjectType();
  ObjectTypeEntity type1 = getObjectManager().getObjectType(entity.getId());
  ObjectTypeEntity type2 = getObjectManager().getObjectType(entity.getId());
  assertSame(type1, type2);
}