### Question:
ExchangeRegistry { Exchange getExchange(String exchangeName) { return exchangeMap.get(exchangeName); } ExchangeRegistry(ExchangeDao exchangeDao, BindingDao bindingDao); void createExchange(String exchangeName, Exchange.Type type, boolean durable); Exchange getDefaultExchange(); void retrieveFromStore(QueueRegistry queueRegistry); Collection<Exchange> getAllExchanges(); static final String DEFAULT_DEAD_LETTER_EXCHANGE; }### Answer:
@Test(dataProvider = "exchangeNames", description = "test frequently used exchanges types are defined") public void testGetExchanges(String exchangeName) { Exchange exchange = exchangeRegistry.getExchange(exchangeName); Assert.assertNotNull(exchange, "unable to find the exchange"); Assert.assertEquals(exchange.getName(), exchangeName, "invalid exchange returned"); }