### Question:
QueryResultsMemcachedRegion extends GeneralDataMemcachedRegion implements QueryResultsRegion { protected String refineKey(Object key) { String refinedKey = DigestUtils.md5Hex(String.valueOf(key)) + "_" + String.valueOf(key.hashCode()); log.debug("QueryResultCache refineKey original {} to {}", key, refinedKey); return refinedKey; } QueryResultsMemcachedRegion(String regionName, OverridableReadOnlyProperties properties, Settings settings,
                                       MemcachedAdapter memcachedAdapter, HibernateCacheTimestamper hibernateCacheTimestamper);   }### Answer:
@Test public void refineKey() throws Exception { String key = "select something from Entity where many many conditions are satisfied."; String refinedKey = queryResultsMemcachedRegion.refineKey(key); assertThat(refinedKey).isEqualTo(DigestUtils.md5Hex(key) + "_" + String.valueOf(key.hashCode())); }