new RtPullComment(new ApacheRequest(container.home()), pull, 2);
try {
final JsonObject json = Json.createObjectBuilder()
.add("body", "test comment").build();
comment.patch(json);
final MkQuery query = container.take();
MatcherAssert.assertThat(
query.method(), Matchers.equalTo(Request.PATCH)
);
MatcherAssert.assertThat(
query.body(),
Matchers.containsString("{\"body\":\"test comment\"}")
);
MatcherAssert.assertThat(
query.uri().toString(),
Matchers.endsWith("/repos/joe/test/pulls/comments/2")
);
} finally {
container.stop();
}