@Test
public void testCreateMetaFactSetMissingAccessMode() throws Exception {

  CreateMetaFactRequest request = createRequest()
          .setAccessMode(null);
  mockCreateNewFact();
  when(factCreateHandler.resolveAccessMode(eq(seenIn), isNull())).thenReturn(seenIn.getAccessMode());
  delegate.handle(request);
  verify(factCreateHandler).saveFact(argThat(e -> Objects.equals(seenIn.getAccessMode(), e.getAccessMode())), notNull(), notNull());
}