@Test
public void shouldParseGrammarWithVariableNames() {

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