action.requestPath = "http://testing.example/temp/token";
}
@Test
public void testTemp() {
action.response = new FakeResponse();
memcache.save(
new Key(STASH, "token"),
new ImmutableMap.Builder<String, Object>()
.put("status", 234)
.put("sleepSeconds", 5)
.put("mimeType", "a/b")
.put("cookiesToDelete", ImmutableList.of("x", "y"))
.put("cookiesToAdd", ImmutableMap.of("j", "k", "m", ""))
.put("headers", ImmutableMap.of("aa", "bb", "cc", ""))
.put("payload", "foo")
.build(),
null);
action.run();
assertEquals(
new FakeResponse()
.setStatus(234)
.setSleepSeconds(5)
.setMimeType("a/b")
.setCookiesToDelete(ImmutableList.of("x", "y"))
.setCookiesToAdd(ImmutableMap.of("j", "k", "m", ""))