/**
  * Check that containsValueForKey() called on the tests' region has the expected result. Throw an
  * error if any problems.
  *
  * @param key The key to check.
  * @param expected The expected result of containsValueForKey
  * @param logStr Used if throwing an error due to an unexpected value.
  */
 protected void checkContainsValueForKey(Object key, boolean expected, String logStr) {
   boolean containsValue = aRegion.containsValueForKey(key);
   if (containsValue != expected)
     throw new TestException(
         "Expected containsValueForKey("
             + key
             + ") to be "
             + expected
             + ", but it was "
             + containsValue
             + ": "
             + logStr);
 }