@Test
public void testCreateFactWithBidirectionalBinding() throws Exception {

  CreateFactRequest request = createRequest()
          .setBidirectionalBinding(true);
  // Need to change type in order to pass validation.
  resolveFactType.setRelevantObjectBindings(set(new FactTypeEntity.FactObjectBindingDefinition()
          .setSourceObjectTypeID(ipObjectType.getId())
          .setDestinationObjectTypeID(domainObjectType.getId())
          .setBidirectionalBinding(true)
  ));
  mockCreateNewFact();
  delegate.handle(request);
  verify(factCreateHandler).saveFact(matchFactRecord(request), notNull(), notNull());
}