Map<String, Object> _revisions = ClientTestUtils.getRevisionHistory(revision3, revision2, revision1);
doc1.put(CouchConstants._rev, revision3);
doc1.put(CouchConstants._revisions, _revisions);
List<Response> responses = client.bulkCreateDocs(doc1);
Assert.assertEquals(0, responses.size());
<BUG>Map<String, Object> allRevs = client.getDocRevisions(res1.getId(), revision3, JSONUtils.mapStringToObject());
</BUG>
int revisionStart = (Integer) ((Map<String, Object>) allRevs.get(CouchConstants._revisions)).get
(CouchConstants.start);
Assert.assertEquals(3, revisionStart);

Map<String, Object> _revisions = ClientTestUtils.getRevisionHistory(revision3, revision2, revision1);
doc1.put(CouchConstants._rev, revision3);
doc1.put(CouchConstants._revisions, _revisions);
List<Response> responses = client.bulkCreateDocs(doc1);
Assert.assertEquals(0, responses.size());
Map<String, Object> allRevs = client.getDocRevisions(res1.getId(), revision3, JSONUtils.STRING_MAP_TYPE_DEF);
int revisionStart = (Integer) ((Map<String, Object>) allRevs.get(CouchConstants._revisions)).get
(CouchConstants.start);
Assert.assertEquals(3, revisionStart);
