Moving class mocks/stubs to class scope.