}
public void testCreateConfigurationWithDeepChildElements()
throws Exception
{
final SAXConfigurationHandler handler = new SAXConfigurationHandler();
final String qName = "myElement";
final String childName = "myChild";
final String grandChildName = "myGrandChild";
handler.startElement( "", "", qName, new AttributesImpl() );
handler.startElement( "", "", childName, new AttributesImpl() );
handler.startElement( "", "", grandChildName, new AttributesImpl() );
handler.endElement( "", "", grandChildName );
handler.endElement( "", "", childName );
handler.endElement( "", "", qName );
final Configuration configuration = handler.getConfiguration();
assertEquals( "configuration.name", qName, configuration.getName() );
assertEquals( "configuration.location", "", configuration.getLocation() );
assertEquals( "configuration.path", "", configuration.getPath() );
final Configuration[] children = configuration.getChildren();
assertEquals( "children.length", 1, children.length );