ExchangeManager extends AbstractExchangeManager<UDDI_SPEC_VERSION> { @Override public String getDefaultExchange() { return null != exInfo ? exInfo.getDefaultExchange() : null; } protected  ExchangeManager(); static ExchangeManager getInstance(); @Override String getDefaultExchange(); @Override void refreshExchangeCacheIfRequired(); @Override OrganizationType getOrganization(String hcid); @Override OrganizationType getOrganization(String exchangeName, String hcid); @Override String getEndpointURL(String hcid, String sServiceName, UDDI_SPEC_VERSION api_spec, String exchangeName); @Override List<OrganizationType> getAllOrganizations(); @Override List<OrganizationType> getAllOrganizations(String exchangeName); boolean updateExchangeInfo(long refreshInterval, BigInteger maxBackups, String defaultExchange); boolean deleteExchange(String exchangeName); boolean saveExchange(ExchangeType exchangeUpdate, String originalExchangeName); List<ExchangeType> getAllExchanges(); List<OrganizationType> getAllOrganizationsBy(String exchangeName); List<EndpointType> getAllEndpointTypesBy(String exchangeName, String hcid); ExchangeInfoType getExchangeInfoView(); boolean isRefreshLocked(); boolean toggleIsDisabledFor(String forExchangeName);  }
@Test public void testGetOrganizationByHcids() { Exchange<UDDI_SPEC_VERSION> exMgr = createExternalExchangeManagerForMulitpleExchange(); try { List<String> hcids = new ArrayList<>(); hcids.add(HCID_1); hcids.add(HCID_2); Set<OrganizationType> orgSet = exMgr.getOrganizationSet(hcids, null); assertEquals("DefaultExchange does not match", null, exMgr.getDefaultExchange()); assertEquals("Search Result size not correct", hcids.size(), orgSet.size()); } catch (ExchangeManagerException ex) { fail("Error running testGetOrganization: " + ex.getMessage()); } }