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

  doThrow(AccessDeniedException.class).when(securityContext).checkPermission(TiFunctionConstants.addThreatIntelType);
  delegate.handle(createFactTypeRequest());
}