* @throws Exception If a problem occurs.
*/
@Test
public void canPatchJson() throws Exception {
final String orig = "orig.txt";
final ReleaseAsset asset = release().assets().upload(
"testPatch".getBytes(), "text/plain", orig
);
final String attribute = "name";
MatcherAssert.assertThat(
asset.json().getString(attribute),
Matchers.is(orig)
);
final String patched = "patched.txt";
asset.patch(
Json.createObjectBuilder().add(attribute, patched).build()
);
MatcherAssert.assertThat(
asset.json().getString(attribute),
Matchers.is(patched)
);
}