@Test
public void testCheckReadPermissionForOriginWithOrganizationAccess() throws Exception {

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