@Test
  public void testStateWindowSS10() {
    String delta = "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 == 500) {
        windowStart.add(i);
        windowEnd.add(i + 1);
        i++;
        continue;
      }
      windowStart.add(i);
      windowEnd.add(i);
    }
    testStateWindowSS(
        "s4",
        delta,
        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