@Test
public void testFetchExistingObjectType() throws ObjectNotFoundException {

  UUID id = UUID.randomUUID();
  ObjectTypeEntity entity = new ObjectTypeEntity();
  when(objectManager.getObjectType(id)).thenReturn(entity);
  assertSame(entity, resolver.fetchExistingObjectType(id));
}