assertXMLEqual( getContent( "testListenForChanges.expected.1",
((FactHandle) result.getFactHandle( "changes" )).toExternalForm(),
((FactHandle) result.getFactHandle( "person" )).toExternalForm() ),
outXml );
ChangeCollector collector = (ChangeCollector) result.getValue( "changes" );
Cheese c = (Cheese) collector.getChanges().get( 0 );
assertEquals( 42,
c.getPrice() );
result = execContent( "testListenForChanges.in.3",
ExecutionResults.class );
collector = (ChangeCollector) result.getValue( "changes" );
assertEquals( "stilton",
collector.getRetracted().get( 0 ) );
}