File thawDir = createDirectory();
Bucket bucket = getTgzBucketArchived();
SplunkIndexesLayer splunkIndexesLayer = new FakeSplunkIndexesLayer(thawDir);
BucketThawer bucketThawer = BucketThawerFactory
.createWithConfigAndSplunkSettingsAndLocalFileSystemPaths(tgzConf,
splunkIndexesLayer, localFileSystemPaths);
bucketThawer.thawBuckets(bucket.getIndex(), bucket.getEarliest(),
bucket.getLatest());
List<LocalBucket> buckets = bucketThawer.getThawedBuckets();
assertEquals(1, buckets.size());
Bucket thawedBucket = buckets.get(0);
File thawedBucketDir = new File(thawedBucket.getPath());
assertTrue(thawedBucketDir.isDirectory());
assertTrue(thawedBucketDir.exists());