RackResponse response = app.call(env);
assertThat(response.getHeaders()).contains(entry("Content-Type", "text/plain"));
}
@Test public void callSetsTheResponseBody() {
RackResponse response = app.call(env);
ImmutableList.Builder<String> strings = ImmutableList.builder();
Iterator<byte[]> bytes = response.getBody();
while (bytes.hasNext()) {
strings.add(new String(bytes.next()));
}
assertThat(SPACE.join(strings.build())).isEqualTo(SPACE.join(env.keySet()));