@Test
public void testCheckReadPermissionForFactRecordWithAccessModePublic() throws Exception {

  when(accessController.hasPermission(credentials, viewThreatIntelFact)).thenReturn(true);
  context.checkReadPermission(new FactRecord().setAccessMode(FactRecord.AccessMode.Public));
  verify(accessController).hasPermission(credentials, viewThreatIntelFact);
}