waitForNConsumers(container, 1, 20000); // should stop the extra consumer after 10 seconds idle
container.setConcurrentConsumers(3);
waitForNConsumers(container, 3);
container.stop();
waitForNConsumers(container, 0);
singleConnectionFactory.destroy();
}
@Test
public void testAddQueuesAndStartInCycle() throws Exception {
final SingleConnectionFactory connectionFactory = new SingleConnectionFactory("localhost");