public Type parse(final String schema) {
    try {
      final TypeContext typeContext = parseTypeContext(schema);
      return getType(typeContext);
    } catch (final ParsingException e) {
      throw new KsqlStatementException(
          "Failed to parse schema",
          "Failed to parse: " + schema,
          schema,
          KsqlStatementException.Problem.STATEMENT,
          e
      );
    }
  }
@Test
  public void shouldGetTypeFromEmptyStruct() {
    // Given:
    final String schemaString = SqlTypes.struct().build().toString();

    // When:
    final Type type = parser.parse(schemaString);

    // Then:
    assertThat(type, is(new Type(SqlTypes.struct().build())));
  }