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

    String TEXT_1 = "\"ABC\"";
    String SEPARATOR = "\"-\"";
    String SEQUENTIAL = "SEQUENTIAL(###)";
    String expression = String.format( " %s + %s + %s", TEXT_1, SEPARATOR, SEQUENTIAL );
    TextPattern textPattern = TextPatternParser.parse( expression );
    assertNotNull( textPattern );
    List<TextPatternSegment> segments = textPattern.getSegments();
    assertEquals( segments.size(), 3 );
    assertEquals( segments.get( 0 ).getMethod(), TextPatternMethod.TEXT );
    assertEquals( segments.get( 1 ).getMethod(), TextPatternMethod.TEXT );
    assertEquals( segments.get( 2 ).getMethod(), TextPatternMethod.SEQUENTIAL );
}