assertEquals(cookbook,
handler.apply(HttpResponse.builder().statusCode(200).message("ok").payload(json.toJson(cookbook)).build()));
}
public void testApache() {
CookbookVersion fromJson = handler.apply(HttpResponse.builder().statusCode(200).message("ok")
.payload(ParseCookbookVersionFromJsonTest.class.getResourceAsStream("/apache-chef-demo-cookbook.json"))
.build());
CookbookVersion expected = CookbookVersion
.builder("apache-chef-demo", "0.0.0")
.metadata(Metadata.builder() //
.license("Apache v2.0") //
.maintainer("Your Name") //
.maintainerEmail("youremail@example.com") //