Replaced mock() with double()