public static TableElements parse(final String schema, final TypeRegistry typeRegistry) {
    return new SchemaParser(typeRegistry).parse(schema);
  }
@Test
  public void shouldParseValidSchema() {
    // Given:
    final String schema = "foo INTEGER, bar MAP<VARCHAR, VARCHAR>";

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

    // Then:
    assertThat(elements, contains(
        new TableElement(FOO, new Type(SqlTypes.INTEGER)),
        new TableElement(BAR, new Type(SqlTypes.map(SqlTypes.STRING, SqlTypes.STRING
        )))
    ));
  }