@Test
public void testConvertFromFieldsConnectionHeader() throws Exception {

    thrown.expect(HttpException.class);
    thrown.expectMessage("Header 'connection: keep-alive' is illegal for HTTP/2 messages");
    final List<Header> headers = Arrays.<Header>asList(
            new BasicHeader(":method", "GET"),
            new BasicHeader(":scheme", "http"),
            new BasicHeader(":authority", "www.example.com"),
            new BasicHeader(":path", "/"),
            new BasicHeader("connection", "keep-alive"));
    final DefaultH2RequestConverter converter = new DefaultH2RequestConverter();
    converter.convert(headers);
}