@Test
public void testConvertFromMessageInvalidHeader() throws Exception {

    thrown.expect(HttpException.class);
    thrown.expectMessage("Header name ':custom' is invalid");
    final HttpRequest request = new BasicHttpRequest("GET", new HttpHost("host"), "/");
    request.addHeader(":custom", "stuff");
    final DefaultH2RequestConverter converter = new DefaultH2RequestConverter();
    converter.convert(request);
}