49505152535455
assertThat("header", contentType.toString(), equalTo("text/html")); } @Test public void handlesAbsenceOfHeaderInResponse() { assertThat("content type", ContentType.of(new MockResponse()), nullValue()); }
515253545556575859
dispatch(router, GET("/")); } private MockResponse dispatch(Router router, Request request) throws Exception { MockResponse response = new MockResponse(); router.handle(request, response); return response; }