@SuppressWarnings("unchecked")
  @BeforeClass
  public static void setupTests() throws Exception {
    //8 ranges, max cache content is 8+1=9 entries
    addRow(1, 1, -7, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(2, 1, -1, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(3, 1, -1, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(4, 1, 1, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(5, 1, 1, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(6, 1, 1, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(7, 1, 1, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(8, 1, 2, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(9, 1, 2, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(10, 1, 2, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(11, 1, 2, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(12, 1, 3, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(13, 1, 5, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(14, 1, 5, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(15, 1, 5, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(16, 1, 5, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(17, 1, 6, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(18, 1, 6, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(19, 1, 9, TEST_PARTITION, TEST_PARTITION_NO_NULLS);
    addRow(20, 1, null, TEST_PARTITION);
    addRow(21, 1, null, TEST_PARTITION);
  }
Tests BoundaryCache used for RANGE windows in PTF functions.
ql/src/test/org/apache/hadoop/hive/ql/udf/ptf/TestBoundaryCache.java