@Test
public void testMerge() throws ConfigurationException
{
//combiner.setDebugStream(System.out);
BaseHierarchicalConfiguration config = createCombinedConfiguration();
config.setExpressionEngine(new XPathExpressionEngine());
assertEquals("Wrong number of Channels", 3, config.getMaxIndex("Channels/Channel"));
assertEquals("Bad Channel 1 Name", "My Channel",
config.getString("Channels/Channel[@id='1']/Name"));
assertEquals("Bad Channel Type", "half",
config.getString("Channels/Channel[@id='1']/@type"));
assertEquals("Bad Channel 2 Name", "Channel 2",
config.getString("Channels/Channel[@id='2']/Name"));
assertEquals("Bad Channel Type", "full",
config.getString("Channels/Channel[@id='2']/@type"));
assertEquals("Bad Channel Data", "test 1 data",
config.getString("Channels/Channel[@id='1']/ChannelData"));
assertEquals("Bad Channel Data", "test 2 data",
config.getString("Channels/Channel[@id='2']/ChannelData"));
assertEquals("Bad Channel Data", "more test 2 data",
config.getString("Channels/Channel[@id='2']/MoreChannelData"));
}