public static TableElements parse(final String schema, final TypeRegistry typeRegistry) {
    return new SchemaParser(typeRegistry).parse(schema);
  }
@Test
  public void shouldParseValidSchemaWithHeaderField() {
    // Given:
    final String schema = "K STRING HEADERS, bar INT";

    // When:
    final TableElements elements = parser.parse(schema);

    // Then:
    assertThat(elements, contains(
        new TableElement(ColumnName.of("K"), new Type(SqlTypes.STRING), HEADERS_CONSTRAINT),
        new TableElement(BAR, new Type(SqlTypes.INTEGER))
    ));
  }