@Test
public void testValidateBindingsFailsWithoutBindingsOnFactType() throws Exception {

  CreateFactRequest request = createRequest();
  resolveFactType.setRelevantObjectBindings(null);
  mockCreateNewFact();
  InvalidArgumentException ex = assertThrows(InvalidArgumentException.class, () -> delegate.handle(request));
  assertEquals(set("invalid.fact.object.binding"), set(ex.getValidationErrors(), InvalidArgumentException.ValidationError::getMessageTemplate));
}