@Test
public void testFetchObjectByTypeValueWithNonExistingObjectType() throws Exception {

  GetObjectByTypeValueRequest request = new GetObjectByTypeValueRequest().setType("type").setValue("value");
  doThrow(InvalidArgumentException.class).when(objectTypeHandler).assertObjectTypeExists(request.getType(), "type");
  try {
    delegate.handle(request);
    fail();
  } catch (InvalidArgumentException ignored) {
    verifyNoInteractions(objectFactDao);
  }
}