* MkReference should be able to patch itself.
* @throws Exception - If something goes wrong.
*/
@Test
public void patchesRef() throws Exception {
final Reference ref = this.reference();
final JsonObject json = Json.createObjectBuilder()
.add("sha", "testshaPATCH")
.build();
ref.patch(json);
MatcherAssert.assertThat(
ref.json().getString("sha"),
Matchers.is("testshaPATCH")
);
}