@Test
public void testConvertRequestFilterOnFactType() throws Exception {

  UUID id = UUID.randomUUID();
  UUID idForName = UUID.randomUUID();
  when(byNameResolver.resolveFactType(notNull())).thenReturn(SetUtils.set(id, idForName));
  FactSearchCriteria criteria = converter.apply(new SearchFactRequest()
          .addFactType(id.toString())
          .addFactType("name")
  );
  assertEquals(SetUtils.set(id, idForName), criteria.getFactTypeID());
  verify(byNameResolver).resolveFactType(SetUtils.set(id.toString(), "name"));
}