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

  when(accessController.hasPermission(credentials, viewThreatIntelOrigin)).thenReturn(false);
  context.checkReadPermission(new OriginEntity());
}