protected boolean mutatesTo (Object oldInstance, Object newInstance)

Returns true if an equivalent copy of oldInstance may be created by applying a series of statements to newInstance. In the specification of this method, we mean by equivalent that the modified instance is indistinguishable from oldInstance in the behavior of the relevant methods in its public API. [Note: we use the phrase relevant methods rather than all methods here only because, to be strictly correct, methods like hashCode and toString prevent most classes from producing truly indistinguishable copies of their instances].

The default behavior returns true if the classes of the two instances are the same.

Parameters:
oldInstance    The instance to be copied.
newInstance    The instance that is to be modified.

Returns:  True if an equivalent copy of newInstance may be created by applying a series of mutations to oldInstance.