@Test
public void getAll() {

    ReadOnlyHttpHeaders headers = new ReadOnlyHttpHeaders(false,
            ACCEPT, APPLICATION_JSON, CONTENT_LENGTH, ZERO, ACCEPT, APPLICATION_OCTET_STREAM);
    assertFalse(headers.isEmpty());
    assertEquals(3, headers.size());
    List<String> names = headers.getAll(ACCEPT);
    assertEquals(2, names.size());
    assertTrue(APPLICATION_JSON.contentEqualsIgnoreCase(names.get(0)));
    assertTrue(APPLICATION_OCTET_STREAM.contentEqualsIgnoreCase(names.get(1)));
}