}
public void testCreateConfigurationWithAttributesWithInterception()
throws Exception
{
final SAXConfigurationHandler handler = new MockSAXConfigurationHandler();
final String qName = "myElement";
final AttributesImpl attributes = new AttributesImpl();
attributes.addAttribute( "", "", "key", "CDATA", "value" );
handler.startElement( "", "", qName, attributes );
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 String[] names = configuration.getAttributeNames();
assertEquals( "names.length", 1, names.length );