HttpHeadersImpl implements HttpHeaders { @Override public List<String> getRequestHeader(String name) { return nettyHttpHeaders.getAll(name); } HttpHeadersImpl(io.netty.handler.codec.http.HttpHeaders httpHeaders); @Override List<String> getRequestHeader(String name); @Override String getHeaderString(String name); @Override MultivaluedMap<String, String> getRequestHeaders(); @Override List<MediaType> getAcceptableMediaTypes(); @Override List<Locale> getAcceptableLanguages(); @Override MediaType getMediaType(); @Override Locale getLanguage(); @Override Map<String, Cookie> getCookies(); @Override Date getDate(); @Override int getLength();  }
@Test public void testGetRequestHeader() throws Exception { List<String> headerValues = httpHeaders1.getRequestHeader("testA"); assertEquals(headerValues.size(), 2); assertTrue(headerValues.contains("test1")); assertTrue(headerValues.contains("test2")); }