@Test
public void testSetAllOrdersPseudoHeadersCorrectly() {

    Http2Headers headers = newHeaders();
    Http2Headers other = new DefaultHttp2Headers().add("name2", "value2").authority("foo");
    int headersSizeBefore = headers.size();
    headers.setAll(other);
    verifyPseudoHeadersFirst(headers);
    verifyAllPseudoHeadersPresent(headers);
    assertEquals(headersSizeBefore + 1, headers.size());
    assertEquals("foo", headers.authority());
    assertEquals("value2", headers.get("name2"));
}