DefaultHttpHeaderManager implements HttpHeaderManager { @Override public String getHeader(String name) { String result = null; if (headers.containsKey(name.toUpperCase(locale))) { result = headers.get(name.toUpperCase(locale)).getValue(); } return result; } DefaultHttpHeaderManager(); @Override void addHeader(String name, String value); @Override boolean containsHeader(String name); @Override long getDateHeader(String name); @Override String getHeader(String name); @Override Enumeration<String> getHeaderNames(); @Override Enumeration<String> getHeaders(String name); @Override int getIntHeader(String name); @Override void setHeader(String name, String value);  }
@Test void testGetHeader() { DefaultHttpHeaderManager manager = new DefaultHttpHeaderManager(); assertNull(manager.getHeader("NAME")); }