filter.addComponentsXml( reader );
assertFalse( filter.components.isEmpty() );
Xpp3Dom componentDom = filter.components.get( "rolehint" );
assertEquals( "role", componentDom.getChild( "role" )
.getValue() );
assertEquals( "hint", componentDom.getChild( "role-hint" )
.getValue() );
assertEquals( "org.apache.maven.Impl", componentDom.getChild( "implementation" )
.getValue() );
componentDom = filter.components.get( "rolehint2" );
assertEquals( "role", componentDom.getChild( "role" )
.getValue() );
assertEquals( "hint2", componentDom.getChild( "role-hint" )
.getValue() );
assertEquals( "org.apache.maven.Impl2", componentDom.getChild( "implementation" )
.getValue() );
}