private void assertBucketWasCopiedToArchiveFileSystem_withTeardown(
LocalBucket bucket) {
ArchiveConfiguration config = ArchiveConfiguration
.createConfigurationFromMBean();
HadoopArchiveFileSystem fileSystem = (HadoopArchiveFileSystem) ArchiveFileSystemFactory
.getWithConfiguration(config);
PathResolver pathResolver = new PathResolver(config);
String bucketArchivePath = pathResolver.resolveArchivePath(bucket);
try {
assertTrue(fileSystem.exists(bucketArchivePath),
"BucketArchivePath did not exist: " + bucketArchivePath);
} catch (IOException e) {
TUtilsTestNG.failForException(
"Checking for existing bucket path throwed.", e);
} finally {
fileSystem.deletePath(bucketArchivePath);
}
}