### Question:
Documents { public static void setRevision(Object document, String rev) { getAccessor(document).setRevision(document, rev); }  static void registerAccessor(Class<?> documentType, DocumentAccessor accessor); static String getId(Object document); static void setId(Object document, String id); static String getRevision(Object document); static void setRevision(Object document, String rev); static boolean isNew(Object document);  }### Answer:
@Test public void should_handle_setRev_on_map() { Documents.setRevision(mapDoc, "new_rev"); assertEquals("new_rev", mapDoc.get("_rev")); }
@Test public void should_handle_setRev_on_JsonNode() { Documents.setRevision(nodeDoc, "new_rev"); assertEquals("new_rev", nodeDoc.get("_rev").textValue()); }