@Test
public void testConvertRequestFilterOnOrganization() throws Exception {

  UUID id = UUID.randomUUID();
  UUID idForName = UUID.randomUUID();
  when(byNameResolver.resolveOrganization(notNull())).thenReturn(SetUtils.set(id, idForName));
  FactSearchCriteria criteria = converter.apply(new SearchObjectFactsRequest()
          .addOrganization(id.toString())
          .addOrganization("name")
  );
  assertEquals(SetUtils.set(id, idForName), criteria.getOrganizationID());
  verify(byNameResolver).resolveOrganization(SetUtils.set(id.toString(), "name"));
}