### Question:
EdgeValueHelper { public static void fillHistogramGaps(List<Long> retLong, int desiredLength) { if (retLong.size() != desiredLength) { for (int ii = retLong.size(); ii < desiredLength; ii++) { retLong.add(0l); } } } private  EdgeValueHelper(); static List<Long> decodeActivityHistogram(Value value); static List<Long> decodeActivityHistogram(List<Long> hoursList); static List<Long> decodeDurationHistogram(Value value); static List<Long> decodeDurationHistogram(List<Long> durations); static void fillHistogramGaps(List<Long> retLong, int desiredLength); static Long decodeLinkCount(final Value value); static List<Long> getVarLongList(byte[] bytes); static Value encodeActivityHistogram(List<Long> longs); static Value encodeDurationHistogram(List<Long> longs); static List<Long> getLongListForHour(int hour, boolean delete); static byte[] getByteArrayForHour(int hour, boolean delete); static List<Long> getLongListForDuration(int elapsed, boolean deleteRecord); static byte[] getByteArrayForDuration(int elapsed, boolean deleteRecord); static List<Long> initUnitList(int len, int index, boolean delete); static void combineHistogram(List<Long> sourceList, List<Long> combinedList); static final int ACTIVITY_HISTOGRAM_LENGTH; static final int DURATION_HISTOGRAM_LENGTH; }### Answer:
@Test public void testFillHistogramToExactSize() { List<Long> incompleteList = createIncompleteHistogram(); assertEquals(3, incompleteList.size()); EdgeValueHelper.fillHistogramGaps(incompleteList, EdgeValueHelper.DURATION_HISTOGRAM_LENGTH); assertEquals(EdgeValueHelper.DURATION_HISTOGRAM_LENGTH, incompleteList.size()); EdgeValueHelper.fillHistogramGaps(incompleteList, EdgeValueHelper.ACTIVITY_HISTOGRAM_LENGTH); assertEquals(EdgeValueHelper.ACTIVITY_HISTOGRAM_LENGTH, incompleteList.size()); }