@Test
  public void testInvalidEntries() throws Exception {
    region.invalidate("1");
    region.invalidate("3");
    Query q = qs.newQuery("select distinct * from " + SEPARATOR + "pos");
    SelectResults results = (SelectResults) q.execute();
    assertEquals(2, results.size()); // should not include NULLs
  }
RegionJUnitTest.java

Created on January 31, 2005, 3:54 PM
geode-core/src/integrationTest/java/org/apache/geode/cache/query/RegionJUnitTest.java