GetExpectationValue should take its argument by value if it will be modified.