### Question:
AccumuloIndexAgeDisplay { public String logAgeSummary() { StringBuilder sb = new StringBuilder(); for (int ii = buckets.length - 1; ii >= 0; --ii) { sb.append(String.format("\nIndexes older than %1$-3d %2$-6s %3$10d", buckets[ii], "days:", dataBuckets[ii].size())); } sb.append("\n"); String summary = sb.toString(); log.info(summary); return (summary); } AccumuloIndexAgeDisplay(Instance instance, String tableName, String columns, String userName, PasswordToken password, Integer[] buckets); void setBuckets(Integer[] unsorted); Integer[] getBuckets(); void extractDataFromAccumulo(); String logAgeSummary(); void createAccumuloShellScript(String fileName); static void main(String[] args);  }### Answer:
@Test public void assortedDataIntoDefaultBucketLogOutputTest() { loadAssortedData(); completeSetup(new Integer[0]); String expectedLogSummary = getAssortedSimulatedLogOutput(); String actualLogSummary = aiad.logAgeSummary(); Assert.assertEquals(expectedLogSummary, actualLogSummary); }
@Test public void oneHourOldDataIntoDefaultBucketLogOutputTest() { loadOneHourData(); completeSetup(new Integer[0]); String expectedLogSummary = getOneHourSimulatedLogOutput(); String actualLogSummary = aiad.logAgeSummary(); Assert.assertEquals(expectedLogSummary, actualLogSummary); }
@Test public void assortedDataIntoThreeDayBucketLogOutputTest() { loadAssortedData(); completeSetup(new Integer[] {3}); String expectedLogSummary = getAssortedDataThreeDaySimulatedLogOutput(); String actualLogSummary = aiad.logAgeSummary(); Assert.assertEquals(expectedLogSummary, actualLogSummary); }