@Test
public void testModObjMultiLabelAsyncFlush() throws Exception {
// prep by initting at lv 1 and adding original object
initRI(1);
DigitalObject original = getTestObject("test:1", "test1");
DigitalObject previous = original;
Set<DigitalObject> origSet = new HashSet<DigitalObject>();
origSet.add(previous);
addAll(origSet, true);
// hold on to the original triples so we can compare later
Set<Triple> origTriples = getExpectedTriples(1, origSet);
// modify the label multiple times while flushing
startFlushing(0);
try {
for (int i = 0; i <= 5; i++) {
DigitalObject modified = ObjectBuilder.deepCopy(previous);
modified.setLabel("new label " + i);
modify(previous, modified, false);
previous = modified;
}
// last change puts obj back into original state
modify(previous, original, false);