Updating the API to the new API

JAVA-1325
wow, that is an awkward phasing.  could we do something like:

    areEquivalent(operation, expectedOperation)