@Test
public void testConvertFromFieldsBasic() throws Exception {

    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();
    final HttpResponse response = converter.convert(headers);
    Assert.assertNotNull(response );
    Assert.assertEquals(200, response .getCode());
    final Header[] allHeaders = response.getHeaders();
    Assert.assertEquals(2, allHeaders.length);
    Assert.assertEquals("location", allHeaders[0].getName());
    Assert.assertEquals("http://www.example.com/", allHeaders[0].getValue());
    Assert.assertEquals("custom123", allHeaders[1].getName());
    Assert.assertEquals("value", allHeaders[1].getValue());
}