* @throws ParseException if the test document cannot be parsed.
*/
public final void testParser()
throws IOException, ParseException
{
WellformednessCheckingSink sink = new WellformednessCheckingSink();
Reader reader = null;
try
{
reader = getTestReader( "test", outputExtension() );
createParser().parse( reader, sink );
assertTrue( "Parser output not well-formed, last offending element: "
+ sink.getOffender(), sink.isWellformed() );
}
finally
{
IOUtil.close( reader );
}