@Test
public void shouldParseGrammarWithOneRequiredTokenAndLength() {

    pattern = parser.parse(TYPE, "BIT(L)");
    assertThat(pattern).isNotNull();
    type = pattern.match(text("BIT(3)"));
    assertThat(type.arrayDimensions()).isNull();
    assertThat(type.length()).isEqualTo(3);
    assertThat(type.scale()).isEqualTo(-1);
    assertThat(type.name()).isEqualTo("BIT");
    assertThat(type.expression()).isEqualTo("BIT(3)");
    assertThat(type.jdbcType()).isEqualTo(TYPE);
}