@Test
public void testConvertFromMessageConnect() throws Exception {

    final HttpRequest request = new BasicHttpRequest("CONNECT", new HttpHost("host:80"), null);
    request.addHeader("custom123", "Value");
    final DefaultH2RequestConverter converter = new DefaultH2RequestConverter();
    final List<Header> headers = converter.convert(request);
    Assert.assertNotNull(headers);
    Assert.assertEquals(3, headers.size());
    final Header header1 = headers.get(0);
    Assert.assertEquals(":method", header1.getName());
    Assert.assertEquals("CONNECT", header1.getValue());
    final Header header2 = headers.get(1);
    Assert.assertEquals(":authority", header2.getName());
    Assert.assertEquals("host:80", header2.getValue());
    final Header header3 = headers.get(2);
    Assert.assertEquals("custom123", header3.getName());
    Assert.assertEquals("Value", header3.getValue());
}