@Test
  public void testSetCustomEntryTimeToLive() {
    ClientCache c = new ClientCacheFactory().create();
    ClientRegionFactory<Object, Object> factory = c.createClientRegionFactory(CACHING_PROXY);
    MyCustomExpiry ce = new MyCustomExpiry();
    r1 = factory.setCustomEntryTimeToLive(ce).create(r1Name);
    RegionAttributes ra = r1.getAttributes();
    assertThat(ra.getCustomEntryTimeToLive()).isEqualTo(ce);
  }
Unit test for the ClientRegionFactory class

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