/** * Check that containsKey() 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 containsKey * @param logStr Used if throwing an error due to an unexpected value. */ protected void checkContainsKey(Object key, boolean expected, String logStr) { boolean containsKey = aRegion.containsKey(key); if (containsKey != expected) throw new TestException( "Expected containsKey(" + key + ") to be " + expected + ", but it was " + containsKey + ": " + logStr); }