@Test
public void shouldParseCreateTableWithInlineConstraint() {

    printTest("shouldParseCreateTableWithInlineConstraint()");
    String tableName = "table_name_22_B";
    String content = "CREATE TABLE table_name_22_B ( column_name_1 VARCHAR(255) CONSTRAINT pk_name UNIQUE INITIALLY IMMEDIATE);";
    DdlTokenStream tokens = getTokens(content);
    AstNode result = parser.parseCreateTableStatement(tokens, rootNode);
    assertEquals(1, rootNode.getChildCount()); // COLUMN + PRIMARY KEY CONSTRAINT
    AstNode tableNode = rootNode.getChildren().get(0);
    assertThat(result, is(tableNode));
    assertEquals(tableName, tableNode.getName());
    assertEquals(2, tableNode.getChildCount()); // 1 COLUMN & 1 CONSTRAINT
    AstNode column = tableNode.getChildren().get(0);
    assertEquals("VARCHAR", column.getProperty(DATATYPE_NAME));
    assertEquals(255L, column.getProperty(DATATYPE_LENGTH));
    assertTrue(column.getProperty(DATATYPE_PRECISION) == null);
}