@Test
public void createsAcceptedCharsetListFromHeader() {

    String charsets = "Windows-1251,utf-8; q   =0.9,*;q=0.7";
    List<AcceptToken> expectedCharsetList =
            newArrayList(new AcceptToken("windows-1251"), new AcceptToken("utf-8", 0.9f), new AcceptToken("*", 0.7f));
    List<AcceptToken> charsetList = HeaderHelper.createAcceptedCharsetList(charsets);
    assertEquals(expectedCharsetList, charsetList);
}