@Test
  public void testPutNonExistentEntry() throws CacheException {
    String key = getUniqueName();
    Region<Object, Object> region = createRegion(key);

    assertNull(region.getEntry(key));

    Object value = 42;
    region.put(key, value);

    Region.Entry entry = region.getEntry(key);
    assertNotNull(entry);
    assertEquals(key, entry.getKey());
    assertEquals(value, entry.getValue());
    assertEquals(value, region.get(key));

    try {
      Collection values = region.values();
      assertEquals(1, values.size());
      assertEquals(value, values.iterator().next());
    } catch (UnsupportedOperationException uoe) {
      logger
          .info("Region.values() reported UnsupportedOperation");
    }
  }
Tests that {@link Region#put} on a previously non-existent region entry creates it.
geode-dunit/src/main/java/org/apache/geode/cache30/RegionTestCase.java