public static TableElements of(final TableElement... elements) {
    return new TableElements(ImmutableList.copyOf(elements));
  }
@Test
  public void shouldThrowOnDuplicateValueColumns() {
    // Given:
    final List<TableElement> elements = ImmutableList.of(
        tableElement("v0", INT_TYPE),
        tableElement("v0", INT_TYPE),
        tableElement("v1", INT_TYPE),
        tableElement("v1", INT_TYPE)
    );

    // When:
    final Exception e = assertThrows(
        KsqlException.class,
        () -> TableElements.of(elements)
    );

    // Then:
    assertThat(e.getMessage(), containsString(
        "Duplicate column names:"));
    assertThat(e.getMessage(), containsString(
        "v0"));
    assertThat(e.getMessage(), containsString(
        "v1"));
  }