### Question:
RollingRanges { public static RollingRanges secondly() { return new RollingRanges(TimeUnit.SECONDS, SECOND_FORMAT); } private  RollingRanges(TimeUnit unit, SimpleDateFormat format); static RollingRanges tryCreate(String timeFormat); static RollingRanges secondly(); static RollingRanges minutely(); static RollingRanges hourly(); static RollingRanges daily(); String formatTime(long timestamp); long[] startStopIndexForTime(long time); long stopIndexForTime(long time); long startIndexForTime(long time); long startTimeForTime(long time); long startIndex(String timeFormat); long startIndexForIndex(long index); long stopIndexForIndex(long index); long nextStartIndexForIndex(long index); long startTimeForIndex(long index); long stopTimeForIndex(long index); long stopTimeForTime(long time); Range indexRange(Range range); Range timeRange(Range range); Range toIndexRange(Range timeRange); Range toTimeRange(Range indexRange); Range indexRange(String timeFormat); Range timeRange(String timeFormat); Range nextIndexRange(Range range); Range nextTimeRange(Range range); String startTimeFormatForIndex(long index); long indexOffset(long startTime); static final int MAX_INDEX_PER_MS; }### Answer:
@Test public void testSecondly() { RollingRanges range = RollingRanges.secondly(); assertInterval(range, TimeUnit.SECONDS, 0, "1970-01-01-00-00-00-GMT", "1970-01-01-00-00-01-GMT"); }