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

  doThrow(AccessDeniedException.class).when(securityContext).checkPermission(TiFunctionConstants.viewThreatIntelFact);
  delegate.handle(new SearchObjectFactsRequest());
}