long bucketSize = bucket.getSize();
TUtilsFunctional.archiveBucket(bucket, bucketArchiver);
ListsBucketsFiltered listsBucketsFiltered = ListsBucketsFilteredFactory
.create(config);
List<Bucket> listBucketsInIndex = listsBucketsFiltered
.listFilteredBucketsAtIndex(bucket.getIndex(), bucket.getEarliest(),
bucket.getLatest());
assertEquals(1, listBucketsInIndex.size());
Bucket bucketInArchive = listBucketsInIndex.get(0);