str += " </resource>";
str += " </add> ";
str += "</change-set>";
StringReader reader = new StringReader( str );
ChangeSet changeSet = xmlReader.read( reader );
assertEquals( 2,
changeSet.getResourcesAdded().size() );
UrlResource resource = ( UrlResource ) ((List)changeSet.getResourcesAdded()).get( 0 );
assertEquals( "http://www.domain.com/test.drl",
resource.getURL().toString() );
assertEquals( ResourceType.DRL,
resource.getResourceType() );
resource = ( UrlResource ) ((List)changeSet.getResourcesAdded()).get( 1 );
assertEquals( "http://www.domain.com/test.xls",
resource.getURL().toString() );
assertEquals( ResourceType.DTABLE,
resource.getResourceType() );