properties.put("agent1.sinks", "sink0");
properties.put("agent1.sinks.sink0.type", "null");
properties.put("agent1.sinks.sink0.channel", "ch0");
FlumeConfiguration conf = new FlumeConfiguration(properties);
AgentConfiguration agentConfiguration = conf.getConfigurationFor("agent1");
Assert.assertEquals(String.valueOf(agentConfiguration.getSourceSet()), 1,
agentConfiguration.getSourceSet().size());
Assert.assertEquals(String.valueOf(agentConfiguration.getChannelSet()), 1,
agentConfiguration.getChannelSet().size());
Assert.assertEquals(String.valueOf(agentConfiguration.getSinkSet()), 1,
agentConfiguration.getSinkSet().size());
Assert.assertTrue(agentConfiguration.getSourceSet().contains("src0"));
Assert.assertTrue(agentConfiguration.getChannelSet().contains("ch0"));
Assert.assertTrue(agentConfiguration.getSinkSet().contains("sink0"));
}