engine.swapFiles(newDirv2.getAbsolutePath());
assertVersionsExist(dir, 0, 1, 2);
// rollback
engine.rollback(versionDir);
TestUtils.assertWithBackoff(100, 5000, new Attempt() {
public void checkCondition() throws Exception, AssertionError {
assertVersionsExist(dir, 0);
}
});