@Test
public void duplicateColsThrows() {

  Throwable thrown =
      assertThrows(
          IllegalArgumentException.class,
          () ->
              ArgumentList.builder()
                  .stageFunction("col1", AggregateFunctions.MAX)
                  .unStageFunction("col1Max")
                  .stageFunction("col1", AggregateFunctions.COUNT)
                  .unStageFunction("col1Max")
                  .build());
  assertTrue(thrown.getMessage().contains("duplicate column"));
}