@Test
public void isTableConstraint() {

    printTest("isTableConstraint()");
    String content = "PRIMARY KEY";
    DdlTokenStream tokens = getTokens(content);
    boolean result = parser.isTableConstraint(tokens);
    assertTrue(result);
    content = "FOREIGN KEY";
    tokens = getTokens(content);
    result = parser.isTableConstraint(tokens);
    assertTrue(result);
    content = "UNIQUE";
    tokens = getTokens(content);
    result = parser.isTableConstraint(tokens);
    assertTrue(result);
    content = "CONSTRAINT constraint_name PRIMARY KEY";
    tokens = getTokens(content);
    result = parser.isTableConstraint(tokens);
    assertTrue(result);
    content = "CONSTRAINT constraint_name FOREIGN KEY";
    tokens = getTokens(content);
    result = parser.isTableConstraint(tokens);
    assertTrue(result);
    content = "CONSTRAINT constraint_name UNIQUE";
    tokens = getTokens(content);
    result = parser.isTableConstraint(tokens);
    assertTrue(result);
    content = "XXXXX";
    tokens = getTokens(content);
    result = parser.isTableConstraint(tokens);
    assertFalse(result);
    content = "CONSTRAINT constraint_name XXXXX";
    tokens = getTokens(content);
    result = parser.isTableConstraint(tokens);
    assertFalse(result);
}