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

  doThrow(AccessDeniedException.class).when(securityContext).checkPermission(TiFunctionConstants.addThreatIntelOrigin);
  delegate.handle(new CreateOriginRequest());
}