/**
* Tests combinations of elements with attributes.
*/
public void testSimpleValuesWithAttributes() throws ConfigurationException
{
HierarchicalConfiguration config = createCombinedConfiguration();
assertEquals("Too few level elements", 1, config
.getMaxIndex("gui.level"));
assertEquals("Wrong value of first element", 1, config
.getInt("gui.level(0)"));
assertEquals("Wrong value of second element", 4, config
.getInt("gui.level(1)"));
assertEquals("Wrong value of first attribute", 2, config
.getInt("gui.level(0)[@default]"));
assertFalse("Found wrong attribute", config
.containsKey("gui.level(0)[@min]"));
assertEquals("Wrong value of second attribute", 1, config
.getInt("gui.level(1)[@min]"));
}