StringReader reader = new StringReader( writer.toString() );
writer = new StringWriter();
sink = new TextSink( writer );
Parser parser = createParser();
parser.enableLogging( new PlexusLoggerWrapper( getContainer().getLogger() ) );
parser.parse( reader, sink );
String actual = writer.toString();
// write to file for comparison
fileWriter = getTestWriter( "actual" );