### Question:
TimeSeries implements Serializable { public String getSeriesPeriodDescription() { StringBuilder sb = new StringBuilder(); if (!ticks.isEmpty()) { final String timeFormat = "hh:mm dd/MM/yyyy"; Tick firstTick = getFirstTick(); Tick lastTick = getLastTick(); sb.append(firstTick.getEndTime().toString(timeFormat)) .append(" - ") .append(lastTick.getEndTime().toString(timeFormat)); } return sb.toString(); } TimeSeries(String name, List<Tick> ticks);  TimeSeries(List<Tick> ticks);  TimeSeries(String name);  TimeSeries(); private  TimeSeries(String name, List<Tick> ticks, int beginIndex, int endIndex, boolean subSeries); String getName(); Tick getTick(int i); Tick getFirstTick(); Tick getLastTick(); int getTickCount(); int getBegin(); int getEnd(); String getSeriesPeriodDescription(); void setMaximumTickCount(int maximumTickCount); int getMaximumTickCount(); int getRemovedTicksCount(); void addTick(Tick tick); TimeSeries subseries(int beginIndex, int endIndex); TimeSeries subseries(int beginIndex, Period duration); List<TimeSeries> split(int nbTicks); List<TimeSeries> split(Period splitDuration, Period sliceDuration); List<TimeSeries> split(Period duration); TradingRecord run(Strategy strategy); TradingRecord run(Strategy strategy, OrderType orderType); TradingRecord run(Strategy strategy, OrderType orderType, Decimal amount);  }### Answer:
@Test public void getSeriesPeriodDescription() { assertTrue(defaultSeries.getSeriesPeriodDescription().endsWith(ticks.get(defaultSeries.getEnd()).getEndTime().toString("hh:mm dd/MM/yyyy"))); assertTrue(defaultSeries.getSeriesPeriodDescription().startsWith(ticks.get(defaultSeries.getBegin()).getEndTime().toString("hh:mm dd/MM/yyyy"))); assertTrue(subSeries.getSeriesPeriodDescription().endsWith(ticks.get(subSeries.getEnd()).getEndTime().toString("hh:mm dd/MM/yyyy"))); assertTrue(subSeries.getSeriesPeriodDescription().startsWith(ticks.get(subSeries.getBegin()).getEndTime().toString("hh:mm dd/MM/yyyy"))); assertEquals("", emptySeries.getSeriesPeriodDescription()); }