@Test
public void testBindQueue() {

    eventBinder.bind(TestEventOne.class).toQueue(TestSetup.TEST_QUEUE_ONE);
    eventBinder.bind(TestEventTwo.class).toQueue(TestSetup.TEST_QUEUE_TWO).autoAck();
    eventBinder.processQueueBindings();
    // Retrieve consumers managed by the consumer container
    List<ConsumerContainer.ConsumerHolder> consumers = eventBinder.consumerContainer.getInactiveConsumers();
    // Sort consumers first because their order is arbitrary
    Collections.sort(consumers, new MessageConsumerComparator());
    // Check for exact amount of consumers
    Assert.assertEquals(2, consumers.size());
    ConsumerContainer.ConsumerHolder consumerOne = consumers.get(0);
    ConsumerContainer.ConsumerHolder consumerTwo = consumers.get(1);
    // Check for correct queue names
    Assert.assertEquals(TestSetup.TEST_QUEUE_ONE, consumerOne.getConfiguration().getQueueName());
    Assert.assertEquals(TestSetup.TEST_QUEUE_TWO, consumerTwo.getConfiguration().getQueueName());
    // Check for correct auto ack
    Assert.assertFalse(consumerOne.getConfiguration().isAutoAck());
    Assert.assertTrue(consumerTwo.getConfiguration().isAutoAck());
}