@Test(expected = AccessDeniedException.class)
public void testCheckReadPermissionWithAccessModeRoleBasedNoAccess() throws Exception {

  FactEntity fact = new FactEntity()
          .setOrganizationID(UUID.randomUUID())
          .setAccessMode(AccessMode.RoleBased);
  when(accessController.hasPermission(credentials, viewThreatIntelFact, organization)).thenReturn(false);
  context.checkReadPermission(fact);
}