@Override
public void run() {
ArchiveConfiguration config = ArchiveConfiguration
.createConfigurationFromMBean();
PathResolver pathResolver = new PathResolver(config);
String normalBucketName = replicatedBucket.getName().replaceFirst("rb",
"db");
Bucket normalBucket = new Bucket(replicatedBucket.getPath(),
replicatedBucket.getIndex(), normalBucketName,
replicatedBucket.getFormat());
String archivePath = pathResolver.resolveArchivePath(normalBucket);
ArchiveFileSystem archiveFileSystem = ArchiveFileSystemFactory
.getWithConfiguration(config);
try {
archivePathAsserter.assertStateOfArchivePathOnFileSystem(archivePath,
archiveFileSystem);