);
try {
final JsonObject json = Json.createObjectBuilder()
.add("name", "hello").build();
asset.patch(json);
final MkQuery query = container.take();
MatcherAssert.assertThat(
query.method(), Matchers.equalTo(Request.PATCH)
);
MatcherAssert.assertThat(
query.body(),
Matchers.containsString("{\"name\":\"hello\"}")
);
MatcherAssert.assertThat(
query.uri().toString(),
Matchers.endsWith("/repos/john/test/releases/assets/2")
);
} finally {
container.stop();
}