@Test
public void testCheckReadPermissionWithAccessModePublic() throws Exception {

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