.size());
assertEquals(5, flowed.getConfigManForFlow("flow1").getAllConfigs().size());
assertEquals(5, flowed.getConfigManForFlow("flow2").getAllConfigs().size());
assertEquals(10, flowed.getTranslatedConfigs().size());
FlumeConfigData agent1 = flowed.getConfig("agent1");
FlumeConfigData agent2 = flowed.getConfig("agent2");
LOG.info(agent1);
assertEquals("< { lazyOpen => logicalSink( \"coll14\" ) } ? "
+ "< { lazyOpen => logicalSink( \"coll11\" ) } ? "
+ "< { lazyOpen => logicalSink( \"coll13\" ) } ? null > > >",
agent1.sinkConfig);
LOG.info(agent2);
assertEquals("< { lazyOpen => logicalSink( \"coll23\" ) } ? "
+ "< { lazyOpen => logicalSink( \"coll22\" ) } ? "
+ "< { lazyOpen => logicalSink( \"coll21\" ) } ? null > > >",
agent2.sinkConfig);
// change the flow group of one of the relevent logicalSinks.
flowed.setConfig("coll14", "flow2", "autoCollectorSource", "null");
FlumeConfigData nextAgent1 = flowed.getConfig("agent1");
FlumeConfigData nextAgent2 = flowed.getConfig("agent2");
// look, the coll14 was removed from agent1 and into agent2
LOG.info(nextAgent1);
assertEquals("< { lazyOpen => logicalSink( \"coll11\" ) } ? "
+ "< { lazyOpen => logicalSink( \"coll13\" ) } ? "