Change mock to double.

mock is deprecated.