@Test
public void testHasReadPermissionForFactRecordReturnsTrueOnAccess() throws Exception {

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