guava/src/com/google/common/collect/ImmutableMap.java
@Deprecated
  @Override
  public final boolean replace(K key, V oldValue, V newValue) {
    throw new UnsupportedOperationException();
  }
@Deprecated
  @Override
  public final boolean replace(K key, V oldValue, V newValue) {
    throw new UnsupportedOperationException();
  }
Guaranteed to throw an exception and leave the map unmodified.

@throws UnsupportedOperationException always
@deprecated Unsupported operation.