@Test
public void getConflictedDocumentIds_oneConflictWithTwoConflictedLeafs() throws Exception {
DocumentRevision rev = this.createDocumentRevision("Tom");
InternalDocumentRevision newRev = this.createDetachedDocumentRevision(rev.getId(), "1-rev", "Jerry");
this.datastore.forceInsert(newRev, "1-rev");
<BUG>Iterator<String> iterator = this.datastore.getConflictedIds();
</BUG>
List<String> conflictedDocId = CollectionUtils.newArrayList(iterator);
Assert.assertThat(conflictedDocId, hasSize(1));
Assert.assertThat(conflictedDocId, hasItems(rev.getId()));

@Test
public void getConflictedDocumentIds_oneConflictWithTwoConflictedLeafs() throws Exception {
DocumentRevision rev = this.createDocumentRevision("Tom");
InternalDocumentRevision newRev = this.createDetachedDocumentRevision(rev.getId(), "1-rev", "Jerry");
this.datastore.forceInsert(newRev, "1-rev");
Iterator<String> iterator = this.datastore.getConflictedIds().iterator();
List<String> conflictedDocId = CollectionUtils.newArrayList(iterator);
Assert.assertThat(conflictedDocId, hasSize(1));
Assert.assertThat(conflictedDocId, hasItems(rev.getId()));
