@Test
public void shouldParseGrammarWithOptionalTokenLists() {

    pattern = parser.parse(TYPE, "TEXT [CHARACTER SET]");
    assertThat(pattern).isNotNull();
    type = pattern.match(text("TEXT CHARACTER SET"));
    assertThat(type.arrayDimensions()).isNull();
    assertThat(type.length()).isEqualTo(-1);
    assertThat(type.scale()).isEqualTo(-1);
    assertThat(type.name()).isEqualTo("TEXT CHARACTER SET");
    assertThat(type.expression()).isEqualTo("TEXT CHARACTER SET");
    assertThat(type.jdbcType()).isEqualTo(TYPE);
}