    @Test
    public void multipleMediaRanges_withWhiteSpace() {

        final String appXml = APPLICATION_XML.getMediaType();
        final String appXhtml = APPLICATION_XHTML_XML.getMediaType();
        final String appPdf = APPLICATION_PDF.getMediaType();
        final AcceptHeader acceptHeader = new AcceptHeader(appXml + ", " + appXhtml + ", " + appPdf);
        
        assertEquals(3, acceptHeader.getAccepts().size());
        assertEquals(appPdf, acceptHeader.getAccepts().get(0).getMediaRange());
        assertEquals(appXhtml, acceptHeader.getAccepts().get(1).getMediaRange());
        assertEquals(appXml, acceptHeader.getAccepts().get(2).getMediaRange());
    }