@Test
public void testValidateBindingFailsWithoutBindingsOnFactType() throws Exception {

  CreateMetaFactRequest request = createRequest();
  observationFactType.setRelevantFactBindings(null);
  when(factRequestResolver.resolveFact(seenIn.getId())).thenReturn(seenIn);
  mockFetchingOrganization();
  mockFetchingFactType();
  InvalidArgumentException ex = assertThrows(InvalidArgumentException.class, () -> delegate.handle(request));
  assertEquals(set("invalid.meta.fact.binding"), set(ex.getValidationErrors(), InvalidArgumentException.ValidationError::getMessageTemplate));
}