@Test
  public void testInitCacheListener() {
    ClientCache c = new ClientCacheFactory().create();
    ClientRegionFactory<Object, Object> factory = c.createClientRegionFactory(PROXY);
    CacheListener<Object, Object> cl1 = new MyCacheListener();
    CacheListener<Object, Object> cl2 = new MyCacheListener();
    r1 = factory.initCacheListeners(new CacheListener[] {cl1, cl2}).create(r1Name);
    RegionAttributes ra = r1.getAttributes();
    assertThat(Arrays.equals(new CacheListener[] {cl1, cl2}, ra.getCacheListeners())).isTrue();
  }
Unit test for the ClientRegionFactory class

@since GemFire 6.5
geode-core/src/integrationTest/java/org/apache/geode/cache/client/ClientRegionFactoryJUnitTest.java