@Test(expected = InvalidArgumentException.class)
public void testSearchObjectFactsWithNonExistingObjectType() throws Exception {

  SearchObjectFactsRequest request = new SearchObjectFactsRequest().setObjectType("type").setObjectValue("value");
  doThrow(InvalidArgumentException.class).when(objectTypeHandler).assertObjectTypeExists(request.getObjectType(), "objectType");
  delegate.handle(request);
}