* @throws Exception If a problem occurs.
*/
@Test
public void canBePatched() throws Exception {
final String original = "PublicKey2";
final PublicKey key = new MkGithub().users().get("jeff")
.keys().create("Title2", original);
final String patched = String.format("%s_patch", original);
key.patch(
Json.createObjectBuilder().add(KEY, patched).build()
);
MatcherAssert.assertThat(
key.json().getString(KEY),
Matchers.equalTo(patched)
);
}