StashAction stash = new StashAction();
stash.response = new Response(sleeper, servletResponse, metrics);
stash.memcache = new Memcache(null, metrics);
StringWriter stashWriter = new StringWriter();
when(servletResponse.getWriter()).thenReturn(new PrintWriter(stashWriter));
stash.tempUrlFactory = new TempUrlFactory("http://testing.example/stash");
stash.lazyRandomToken = lazy("token");
stash.status = 234;
stash.payload = "foo";
stash.run();