fixes #1168
use double instead of mock to get rid of the deprecation warning
Merge pull request #1169 from gurix/issue-1168

fixes #1168