@Test
  public void testSessionTimeWindowSS9() {
    String sessionGap = "0";
    Long displayBegin = 2L;
    Long displayEnd = 20000L;
    ArrayList<Long> windowStart = new ArrayList<>();
    ArrayList<Long> windowEnd = new ArrayList<>();
    for (long i = displayBegin; i < ITERATION_TIMES; i++) {
      if (i == 5 || i == 6 || i == 7 || i == 51 || i == 52 || i == 53 || i == 54 || i == 996
          || i == 997 || i == 998) {
        continue;
      }
      windowStart.add(i);
      windowEnd.add(i);
    }
    testSessionTimeWindowSS(
        sessionGap,
        windowStart.stream().mapToLong(t -> t).toArray(),
        windowEnd.stream().mapToLong(t -> t).toArray(),
        displayBegin,
        displayEnd);
  }
Test for SessionWindow, StateWindow and UserDefinedWindow.
integration-test/src/test/java/org/apache/iotdb/db/it/udf/IoTDBUDFOtherWindowQueryIT.java