@Test
public void testToObjectTypeStruct() {

  UUID id = UUID.randomUUID();
  when(objectManager.getObjectType(id)).thenReturn(new ObjectTypeEntity().setId(id).setName("someObjectType"));
  assertEquals(ObjectTypeStruct.builder().setId(id).setName("someObjectType").build(), resolver.toObjectTypeStruct(id));
}