@Test
public void testHasReadPermissionReturnsFalseOnNoAccess() throws Exception {

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