code: public boolean compareAndPut(V testValue, K key, V value)
    {
      V result = compareAndPut(testValue, key, value, true);
  
      return testValue == result;
    }
docs: Puts a new item in the cache if the current value matches oldValue.
  
  @param key the key
  @param value the new value
  @param testValue the value to test against the current
  
  @return true if the put succeeds