stubbing out the client