public final void testTableHeader()
throws ParseException
{
final StringReader sw = new StringReader( "|*cell1*|*cell2*|\n" );
final ByLineSource source = new ByLineReaderSource( sw );
Block block, expected;
expected =
new TableBlock( new Block[] { new TableRowBlock( new Block[] {
new TableCellHeaderBlock( new Block[] { new TextBlock( "cell1" ) } ),
new TableCellHeaderBlock( new Block[] { new TextBlock( "cell2" ) } ) } ) } );
block = tableParser.visit( source.getNextLine(), source );
assertEquals( block, expected );
}