Set the environment to stub.