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

  doThrow(AccessDeniedException.class).when(securityContext).checkPermission(TiFunctionConstants.updateThreatIntelType);
  delegate.handle(new UpdateFactTypeRequest());
}