@Test
public void testHasReadPermissionReturnsTrueOnAccess() throws Exception {

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