@Test
public void testConvertFromMessageBasic() throws Exception {

    final HttpRequest request = new BasicHttpRequest("GET", new HttpHost("host"), "/");
    request.addHeader("custom123", "Value");
    final DefaultH2RequestConverter converter = new DefaultH2RequestConverter();
    final List<Header> headers = converter.convert(request);
    Assert.assertNotNull(headers);
    Assert.assertEquals(5, headers.size());
    final Header header1 = headers.get(0);
    Assert.assertEquals(":method", header1.getName());
    Assert.assertEquals("GET", header1.getValue());
    final Header header2 = headers.get(1);
    Assert.assertEquals(":scheme", header2.getName());
    Assert.assertEquals("http", header2.getValue());
    final Header header3 = headers.get(2);
    Assert.assertEquals(":authority", header3.getName());
    Assert.assertEquals("host", header3.getValue());
    final Header header4 = headers.get(3);
    Assert.assertEquals(":path", header4.getName());
    Assert.assertEquals("/", header4.getValue());
    final Header header5 = headers.get(4);
    Assert.assertEquals("custom123", header5.getName());
    Assert.assertEquals("Value", header5.getValue());
}