" Cell 1 | Cell 2 |" + EOL +
"*-----------+-----------+" + EOL +
" Cell 3 | Cell 4 |" + EOL +
"*-----------+-----------+" + EOL;
SinkEventTestingSink sink = new SinkEventTestingSink();
parser.parse( text, sink );
Iterator<SinkEventElement> it = sink.getEventList().iterator();
assertEquals( it, "head", "head_", "body", "table", "tableRows" );
assertEquals( it, "tableRow", "tableHeaderCell", "text", "tableHeaderCell_", "tableHeaderCell", "text",
"tableHeaderCell_", "tableRow_" );
assertEquals( it, "tableRow", "tableCell", "text", "tableCell_", "tableCell", "text", "tableCell_", "tableRow_" );