@Test
  public void testConstrainedValues() throws Exception {
    CacheCreation cache = new CacheCreation();
    RegionAttributesCreation attrs = new RegionAttributesCreation(cache);
    attrs.setValueConstraint(String.class);

    cache.createRegion("root", attrs);

    testXml(cache);
  }
Tests the value constraints region attribute that was added in GemFire 4.0.

@since GemFire 4.1
geode-core/src/distributedTest/java/org/apache/geode/cache30/CacheXml66DUnitTest.java