@Test
public void testToFactTypeStruct() {

  UUID id = UUID.randomUUID();
  when(factManager.getFactType(id)).thenReturn(new FactTypeEntity().setId(id).setName("someFactType"));
  assertEquals(FactTypeStruct.builder().setId(id).setName("someFactType").build(), resolver.toFactTypeStruct(id));
}