@Test
public void parsesContentTypeHeader() throws Exception {

    MultivaluedMap<String, Object> headers = new MultivaluedHashMap<>();
    headers.putSingle(CONTENT_TYPE, "text/plain;charset=utf-8");
    ResponseImpl response = new ResponseImpl(200, "foo", null, headers);
    assertEquals(new MediaType("text", "plain", ImmutableMap.of("charset", "utf-8")), response.getMediaType());
}