@Test
public void testConvertFromFieldsUpperCaseHeaderName() throws Exception {

    thrown.expect(HttpException.class);
    thrown.expectMessage("Header name ':Status' is invalid (header name contains uppercase characters)");
    final List<Header> headers = Arrays.<Header>asList(
            new BasicHeader(":Status", "200"),
            new BasicHeader("location", "http://www.example.com/"),
            new BasicHeader("custom123", "value"));
    final DefaultH2ResponseConverter converter = new DefaultH2ResponseConverter();
    converter.convert(headers);
}