@Test
public void getsContentType() throws Exception {

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