ExchangeManager extends AbstractExchangeManager<UDDI_SPEC_VERSION> { @Override protected Map<String, Map<String, OrganizationType>> getCache() throws ExchangeManagerException { refreshExchangeCacheIfRequired(); return exCache; } 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 testInvalidExchange() { ExchangeManager exMgr = createExchangeManagerWithInvalidExType(); try { assertTrue(exMgr.getCache().isEmpty()); } catch (ExchangeManagerException ex) { fail("Error running testInvalidExchange: " + ex.getMessage()); } }