### Question:
Documents { public static boolean isNew(Object document) { return getRevision(document) == null; }  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_isNew_on_map() { mapDoc.remove("_rev"); assertTrue(Documents.isNew(mapDoc)); }
@Test public void should_handle_isNew_onJsonNode() { ObjectMapper om = new ObjectMapper(); ObjectNode onode = om.createObjectNode(); onode.put("_id", "jsonNode_id"); onode.put("otherField", "otherValue"); assertTrue(Documents.isNew(onode)); }