@Test
public void testCheckReadPermissionForOriginWithoutOrganizationAccess() throws Exception {

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