@Test
void canCreateHeadersFromACollection() {

    Headers h = new Headers(asList(
            new Headers.Entry("Accepts", "application/json"),
            new Headers.Entry("Content-Type", "application/xml"))
    );
    assertEquals("application/json", h.getFirst("Accepts"));
    assertEquals("application/xml", h.getFirst("Content-Type"));
}