use double instead of mock to get rid of the deprecation warning