Replaced deprecated mock with double