public void putAll(Headers headers) {
        for (int i = 0; i < headers.size(); i++) {
            addNormal(headers.originalName(i), headers.name(i), headers.value(i));
        }
    }
@Test
    void putAll() {
        Headers headers = new Headers();
        headers.add("Via", "duct");
        headers.add("Cookie", "this=that");
        headers.add("Cookie", "frizzle=frazzle");

        Headers other = new Headers();
        other.add("cookie", "a=b");
        other.add("via", "com");

        headers.putAll(other);

        // Only check the order per field, not for the entire set.
        Truth.assertThat(headers.getAll("Via")).containsExactly("duct", "com").inOrder();
        Truth.assertThat(headers.getAll("coOkiE"))
                .containsExactly("this=that", "frizzle=frazzle", "a=b")
                .inOrder();
        Truth.assertThat(headers.size()).isEqualTo(5);
    }