@Test
public void testConvertFromFieldsConnectMissingAuthority() throws Exception {

    thrown.expect(HttpException.class);
    thrown.expectMessage("Header ':authority' is mandatory for CONNECT request");
    final List<Header> headers = Arrays.<Header>asList(
            new BasicHeader(":method", "CONNECT"),
            new BasicHeader("custom", "value"));
    final DefaultH2RequestConverter converter = new DefaultH2RequestConverter();
    converter.convert(headers);
}