### Question:
HttpHeadersImpl implements HttpHeaders { public MediaType getMediaType() { List<String> values = getListValues(HttpHeaders.CONTENT_TYPE); return values.isEmpty() ? null : JAXRSUtils.toMediaType(values.get(0)); } HttpHeadersImpl(Message message); List<MediaType> getAcceptableMediaTypes(); Map<String, Cookie> getCookies(); Locale getLanguage(); MediaType getMediaType(); MultivaluedMap<String, String> getRequestHeaders(); List<Locale> getAcceptableLanguages(); List<String> getRequestHeader(String name); Date getDate(); String getHeaderString(String headerName); int getLength();  }### Answer:
@Test public void testMediaType() throws Exception { Message m = createMessage(createHeaders()); HttpHeaders h = new HttpHeadersImpl(m); assertEquals(MediaType.valueOf("*/*"), h.getMediaType()); }