@Test
public void testRetractFactSetMissingAccessMode() throws Exception {

  RetractFactRequest request = mockRetractingFact().setAccessMode(null);
  when(factCreateHandler.resolveAccessMode(notNull(), isNull())).thenReturn(FactRecord.AccessMode.RoleBased);
  Fact fact = delegate.handle(request);
  verify(objectFactDao).storeFact(argThat(e -> Objects.equals(e.getId(), fact.getId())
          && e.getAccessMode() == FactRecord.AccessMode.RoleBased));
  verify(factResponseConverter).apply(argThat(e -> Objects.equals(e.getId(), fact.getId())
          && e.getAccessMode() == FactRecord.AccessMode.RoleBased));
}