assertEquals(ContentType.TEXT, ContentType.parse(d.getContentType()));
}
@Test
public void shouldReturnCorrectTypeAndCharsetGivenApplicationTextWithCharset() {
RestData d = new RestResponse();
d.addHeader("Content-Type", "text/plain; charset= iso-8859-1");
assertEquals(ContentType.TEXT, ContentType.parse(d.getContentType()));
assertEquals("iso-8859-1", d.getCharset());
}