@Test
public void partitionDuplicates() {

  Throwable thrown =
      assertThrows(
          IllegalArgumentException.class,
          () ->
              WindowSpecification.builder()
                  .setPartitionColumns(ImmutableList.of("col1", "col1"))
                  .build());
  assertTrue(thrown.getMessage().contains("duplicate columns"));
}