@Test public void shouldNotHaveHeadersIfText() throws Exception { Response response = new MockResponse("text"); assertEquals("", response.makeHttpHeaders()); }
@Test public void shouldHaveHeadersIfXml() throws Exception { Response response = new MockResponse("xml"); assertTrue(response.makeHttpHeaders().contains("HTTP/1.1 200 OK")); }