@Test
public void testFilterConsumersForActiveFlag() {

    List<ConsumerContainer.ConsumerHolder> consumerHolderList = consumerContainer.consumerHolders;
    consumerHolderList.get(0).active = true;
    consumerHolderList.get(1).active = false;
    int activeConsumerHolderSize = consumerContainer.filterConsumersForActiveFlag(true).size();
    Assert.assertEquals(1, activeConsumerHolderSize);
    int inactiveConsumerHolderSize = consumerContainer.filterConsumersForActiveFlag(false).size();
    Assert.assertEquals(1, inactiveConsumerHolderSize);
}