}
private void testUnreleasedNextDocument(Map<IId, IBaseObject> entries,
IId unreleasedGuid, SkipPosition expectedPosition) throws Exception {
// Setup object store
@SuppressWarnings("unchecked")
MockObjectStore os =
newObjectStore("MockObjectStore", DatabaseType.MSSQL, entries);
// Begin testing nextDocument for exception
DocumentList docList = getObjectUnderTest(os, getDocuments(os.getObjects()),
getCustomDeletion(os.getObjects()), getDeletionEvents(os.getObjects()));
SkipPosition actualPosition = SkipPosition.FIRST;
try {
for (Document doc = docList.nextDocument(); doc != null;
doc = docList.nextDocument()) {