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

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