@Test
public void createsAcceptedEncodingListFromHeader() {

    String encodings = "compress;q=0.5, gzip ;  q=1.0";
    List<AcceptToken> expectedEncodingList = newArrayList(new AcceptToken("gzip"), new AcceptToken("compress", 0.5f));
    List<AcceptToken> encodingList = HeaderHelper.createAcceptedEncodingList(encodings);
    assertEquals(expectedEncodingList, encodingList);
}