### Question:
DayImpression implements Serializable { public List<Impression> getHours() { return hours; } DayImpression(String date, List<Impression> hours);  DayImpression();  DayImpression(Double[] dayCounts);  DayImpression(Object hoursMap); String getDate(); void setDate(String date); List<Impression> getHours(); void setHours(List<Impression> hours); void initAggregate(double[] aggregatedHCounts); long countImpressions(double price, TargetingChannel.PriceModel priceModel); static DayImpression add(DayImpression d1, DayImpression d2); static DayImpression buildEmptyDayImpression(String date); static DayImpression subtract(DayImpression d1, DayImpression d2); static DayImpression multiply(DayImpression d1, double r); @Override String toString();  }### Answer:
@Test public void getHours() { Double[] dayCnt = new Double[4]; dayCnt[0] = 24.0; dayCnt[1] = 25.1; dayCnt[2] = 26.2; dayCnt[3] = 37.3; DayImpression di = new DayImpression(dayCnt); List<Impression> exp = new ArrayList(); H0 h0t = new H0(dayCnt[0] / 24.0); H1 h1t = new H1(dayCnt[1] / 24.0); H2 h2t = new H2(dayCnt[2] / 24.0); H3 h3t = new H3(dayCnt[3] / 24.0); Impression imp = new Impression(h0t, h1t, h2t, h3t); for (int i = 0; i < 24; i++) { exp.add(imp); } assertEquals(exp.toString(), di.getHours().toString()); }