@Test
public void testParseBadTextSegment()
    throws TextPatternParser.TextPatternParsingException
{

    thrown.expect( ParsingException );
    TextPatternParser.parse( "\"This segment has no end" );
}