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

    String pattern = "RANDOM(#) + ";
    thrown.expect( ParsingException );
    TextPatternParser.parse( pattern );
}