assertEquals(bucketSize,
(long) archiveBucketSize.readBucketSize(bucketInArchive));
}
public void BucketSize_bucketRoundTrip_bucketGetSizeShouldBeTheSameBeforeArchiveAndAfterThaw() {
LocalBucket bucket = TUtilsBucket.createRealBucket();
TUtilsFunctional.archiveBucket(bucket, bucketArchiver);
bucketThawer.thawBuckets(bucket.getIndex(), bucket.getEarliest(),
bucket.getLatest());
List<LocalBucket> thawedBuckets = bucketThawer.getThawedBuckets();
assertEquals(1, thawedBuckets.size());
Bucket thawedBucket = thawedBuckets.get(0);
assertEquals(bucket.getSize(), thawedBucket.getSize());
}