@Test
public void testValidateBindingFailsOnType() throws Exception {

  FactRecord anotherFact = new FactRecord()
          .setId(UUID.randomUUID())
          .setTypeID(UUID.randomUUID());
  CreateMetaFactRequest request = createRequest()
          .setFact(anotherFact.getId());
  when(factRequestResolver.resolveFact(anotherFact.getId())).thenReturn(anotherFact);
  mockFetchingOrganization();
  mockFetchingFactType();
  InvalidArgumentException ex = assertThrows(InvalidArgumentException.class, () -> delegate.handle(request));
  assertEquals(set("invalid.meta.fact.binding"), set(ex.getValidationErrors(), InvalidArgumentException.ValidationError::getMessageTemplate));
}