@Test
public void testValidateBindingsFailsWithoutObjects() throws Exception {

  CreateFactRequest request = createRequest()
          .setSourceObject("unknown")
          .setDestinationObject("unknown");
  mockCreateNewFact();
  InvalidArgumentException ex = assertThrows(InvalidArgumentException.class, () -> delegate.handle(request));
  assertEquals(set("invalid.source.object", "invalid.destination.object"), set(ex.getValidationErrors(), InvalidArgumentException.ValidationError::getMessageTemplate));
  verify(objectRequestResolver, times(2)).resolveObject("unknown");
}