public void TestLazyConsumerCount() { var container = new TestSimpleMessageListenerContainer(new SingleConnectionFactory()); container.Start(); var concurrentConsumersField = typeof(SimpleMessageListenerContainer).GetField("concurrentConsumers", BindingFlags.NonPublic | BindingFlags.Instance); Assert.AreEqual(1, concurrentConsumersField.GetValue(container)); }