@Test
public void testConvertFromMessageConnectionHeader() throws Exception {

    thrown.expect(HttpException.class);
    thrown.expectMessage("Header 'Connection: Keep-Alive' is illegal for HTTP/2 messages");
    final HttpRequest request = new BasicHttpRequest("GET", new HttpHost("host"), "/");
    request.addHeader("Connection", "Keep-Alive");
    final DefaultH2RequestConverter converter = new DefaultH2RequestConverter();
    converter.convert(request);
}