StringReader reader = new StringReader( str );
ChangeSet changeSet = xmlReader.read( reader );
assertEquals( 2,
changeSet.getResourcesAdded().size() );
UrlResource resource = ( UrlResource ) ((List)changeSet.getResourcesAdded()).get( 0 );
assertNull( resource.getConfiguration() );
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() );
DecisionTableConfiguration dtConf = (DecisionTableConfiguration) resource.getConfiguration();
assertEquals( DecisionTableInputType.XLS,
dtConf.getInputType() );
}