{
createInstances();
int intialSize = factory.getAllIds(config.getAppName()).size();
DoubleRing ring = new DoubleRing(config, factory, tokenManager);
ring.backup();
ring.doubleSlots();
assertEquals(intialSize * 2, factory.getAllIds(config.getAppName()).size());
ring.restore();
assertEquals(intialSize, factory.getAllIds(config.getAppName()).size());
}
}