Use newer syntax for expecting mock to receive a method call.