.size());
assertEquals(5, flowed.getConfigManForFlow("flow1").getAllConfigs().size());
assertEquals(5, flowed.getConfigManForFlow("flow2").getAllConfigs().size());
assertEquals(10, flowed.getTranslatedConfigs().size());
FlumeConfigData agent1 = logical.getConfig("agent1");
FlumeConfigData agent2 = logical.getConfig("agent2");
String host = NetUtils.localhost();
LOG.info(agent1);
assertEquals("< { lazyOpen => rpcSink( \"" + host + "\", 35856 ) } ? "
+ "< { lazyOpen => rpcSink( \"" + host + "\", 35853 ) } ? "
+ "< { lazyOpen => rpcSink( \"" + host + "\", 35855 ) } ? null > > >",
agent1.sinkConfig);
LOG.info(agent2);
assertEquals("< { lazyOpen => rpcSink( \"" + host + "\", 35859 ) } ? "
+ "< { lazyOpen => rpcSink( \"" + host + "\", 35858 ) } ? "
+ "< { lazyOpen => rpcSink( \"" + host + "\", 35857 ) } ? null > > >",
agent2.sinkConfig);
// change the flow group of one of the relevent logicalSinks.
logical.setConfig("coll14", "flow2", "autoCollectorSource", "null");
FlumeConfigData nextAgent1 = logical.getConfig("agent1");
FlumeConfigData nextAgent2 = logical.getConfig("agent2");
// look, the coll14 was removed from agent1 and into agent2
LOG.info(nextAgent1);
assertEquals("< { lazyOpen => rpcSink( \"" + host + "\", 35853 ) } ? "
+ "< { lazyOpen => rpcSink( \"" + host + "\", 35855 ) } ? "