@Test
  public void testSetValueConstraint() {
    ClientCache c = new ClientCacheFactory().create();
    ClientRegionFactory<String, String> factory = c.createClientRegionFactory(CACHING_PROXY);
    r1 = factory.setValueConstraint(String.class).create(r1Name);
    RegionAttributes ra = r1.getAttributes();
    assertThat(ra.getValueConstraint()).isEqualTo(String.class);
  }
Unit test for the ClientRegionFactory class

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