Bucket bucket1 = mock(Bucket.class);
Bucket bucket2 = mock(Bucket.class);
when(
listsBucketsFiltered.listFilteredBucketsAtIndex(index, earliestTime,
latestTime)).thenReturn(asList(bucket1, bucket2));
LocalBucket thawedBucket1 = mock(LocalBucket.class);
LocalBucket thawedBucket2 = mock(LocalBucket.class);
when(getsBucketsFromArchive.getBucketFromArchive(bucket1)).thenReturn(
thawedBucket1);
when(getsBucketsFromArchive.getBucketFromArchive(bucket2)).thenReturn(
thawedBucket2);
bucketThawer.thawBuckets(index, earliestTime, latestTime);