AMQPModule extends AbstractModule { @ProvidesIntoMap @StringMapKey("amqp_exchange") @Singleton @Named(EVENT_QUEUE_PROVIDERS_QUALIFIER) public EventQueueProvider getAMQExchangeEventQueueProvider(Configuration config) { return new AMQPEventQueueProvider(config, true); }  @ProvidesIntoMap @StringMapKey("amqp_queue") @Singleton @Named(EVENT_QUEUE_PROVIDERS_QUALIFIER) EventQueueProvider getAMQQueueEventQueueProvider(Configuration config); @ProvidesIntoMap @StringMapKey("amqp_exchange") @Singleton @Named(EVENT_QUEUE_PROVIDERS_QUALIFIER) EventQueueProvider getAMQExchangeEventQueueProvider(Configuration config); @Provides Map<Task.Status, ObservableQueue> getQueues(Configuration config);  }
@Test public void testGetExchange() { AMQPModule module = new AMQPModule(); EventQueueProvider provider = module.getAMQExchangeEventQueueProvider(config); Assert.assertNotNull(provider); }