@Test
public void testConvertFromFieldsMissingMethod() throws Exception {

    thrown.expect(HttpException.class);
    thrown.expectMessage("Mandatory request header ':method' not found");
    final List<Header> headers = Arrays.<Header>asList(
            new BasicHeader(":scheme", "http"),
            new BasicHeader(":authority", "www.example.com"),
            new BasicHeader(":path", "/"),
            new BasicHeader("custom", "value"));
    final DefaultH2RequestConverter converter = new DefaultH2RequestConverter();
    converter.convert(headers);
}