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

  when(factRequestResolver.resolveFact(seenIn.getId())).thenReturn(seenIn);
  doThrow(AccessDeniedException.class).when(securityContext).checkReadPermission(seenIn);
  delegate.handle(createRequest());
}