@Test
public void testCheckReadPermissionForFactRecordWithAccessModeRoleBasedUserInAcl() throws Exception {

  FactRecord fact = new FactRecord()
          .setId(UUID.randomUUID())
          .setOrganizationID(UUID.randomUUID())
          .setAccessMode(FactRecord.AccessMode.RoleBased)
          .addAclEntry(new FactAclEntryRecord().setSubjectID(mockCurrentUser()));
  context.checkReadPermission(fact);
  verify(accessController, never()).hasPermission(credentials, viewThreatIntelFact, organization);
}