public static Builder builder(final SqlStruct schema) {
    return new Builder(schema);
  }
@Test
  public void shouldThrowOnSettingTooLargeAFieldIndex() {
    // Given:
    final int indexOverflow = SCHEMA.fields().size();

    // When:
    final DataException e = assertThrows(
        DataException.class,
        () -> KsqlStruct.builder(SCHEMA)
            .set(indexOverflow, Optional.empty())
    );

    // Then:
    assertThat(e.getMessage(), containsString("Invalid field index: " + indexOverflow));
  }