@Test
  public void testCacheListener() throws Exception {
    CacheCreation cache = new CacheCreation();
    RegionAttributesCreation attrs = new RegionAttributesCreation(cache);

    CacheListener listener = new MyTestCacheListener();
    attrs.setCacheListener(listener);

    cache.createRegion("root", attrs);

    testXml(cache);
  }
Tests a cache listener with no parameters
geode-core/src/distributedTest/java/org/apache/geode/cache30/CacheXml66DUnitTest.java