@Test
public void testCreateFactTypeWithBothObjectAndFactBindings() {

  CreateFactTypeRequest request = new CreateFactTypeRequest()
          .setName("FactType")
          .setValidator("Validator")
          .addRelevantObjectBinding(new FactObjectBindingDefinition())
          .addRelevantFactBinding(new MetaFactBindingDefinition());
  InvalidArgumentException ex = assertThrows(InvalidArgumentException.class, () -> delegate.handle(request));
  assertEquals(SetUtils.set("invalid.fact.type.definition"), SetUtils.set(ex.getValidationErrors(), InvalidArgumentException.ValidationError::getMessageTemplate));
}