removed __set and injectTo from mock writer