public void chooseBucketFormat_givenNoPrioritizedFormatsAndDefaultWhenNoPrioritizingDoesntExist_chooseFirstFormat() {
List<BucketFormat> prioritizedFormats = new ArrayList<BucketFormat>();
assertTrue(prioritizedFormats.isEmpty());
when(configuration.getBucketFormatPriority())
.thenReturn(prioritizedFormats);
BucketFormat firstFormat = BucketFormat.UNKNOWN;
List<BucketFormat> formats = Arrays.asList(firstFormat,
BucketFormat.UNKNOWN);
assertFalse(formats
.contains(BucketFormatChooser.DEFAULT_FORMAT_WHEN_NO_PRIORITIZING));
BucketFormat chosenFormat = bucketFormatChooser.chooseBucketFormat(formats);
assertEquals(BucketFormat.UNKNOWN, chosenFormat);
}