@Test
public void testGetObjectTypeByNameTwiceReturnsSameInstance() {

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