@Test
public void testConvertRequestFilterOnOrigin() throws Exception {

  UUID id = UUID.randomUUID();
  UUID idForName = UUID.randomUUID();
  when(byNameResolver.resolveOrigin(notNull())).thenReturn(SetUtils.set(id, idForName));
  FactSearchCriteria criteria = converter.apply(new SearchObjectRequest()
          .addOrigin(id.toString())
          .addOrigin("name")
  );
  assertEquals(SetUtils.set(id, idForName), criteria.getOriginID());
  verify(byNameResolver).resolveOrigin(SetUtils.set(id.toString(), "name"));
}