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

  doThrow(AccessDeniedException.class).when(securityContext).checkPermission(TiFunctionConstants.viewThreatIntelOrigin);
  delegate.handle(new GetOriginByIdRequest().setId(UUID.randomUUID()));
}