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

  when(factRequestResolver.resolveFact(seenIn.getId())).thenReturn(seenIn);
  mockFetchingOrganization();
  mockFetchingFactType();
  doThrow(AccessDeniedException.class).when(securityContext).checkPermission(TiFunctionConstants.addThreatIntelFact, organization.getId());
  delegate.handle(createRequest());
}