@Test
public void testConvertFromFieldsConnectPresentScheme() throws Exception {

    thrown.expect(HttpException.class);
    thrown.expectMessage("Header ':scheme' must not be set for CONNECT request");
    final List<Header> headers = Arrays.<Header>asList(
            new BasicHeader(":method", "CONNECT"),
            new BasicHeader(":scheme", "http"),
            new BasicHeader(":authority", "www.example.com"),
            new BasicHeader("custom", "value"));
    final DefaultH2RequestConverter converter = new DefaultH2RequestConverter();
    converter.convert(headers);
}