@Test(expectedExceptions = ConflictException.class)
public void mapToDocInvalidRevision() throws ConflictException {

    // Check ConflictException is thrown for invalid versions
    Map<String, Object> map = new HashMap<String, Object>();
    map.put(DocumentUtil.TAG_ID, "client-assigned-id");
    map.put(DocumentUtil.TAG_REV, "invalid-version"); // OrientDB revisions are ints
    map.put("firstname", "John");
    ODocument result = DocumentUtil.toDocument(map, null, db, orientDocClass);
    assertTrue(false, "Invalid Revision must trigger failure");
}