### Question:
TimeRange { public boolean includes(long actualTime) { final long startTime = startDate.getTime(); final long stopTime = stopDate.getTime(); return (startTime <= actualTime && actualTime < stopTime); } TimeRange(Date startDate, Date stopDate); Date getStartDate(); Date getStopDate(); boolean includes(long actualTime); boolean intersectsWith(TimeRange other); TimeRange getCenterMonth(); TimeRange getMonthBefore(); TimeRange getMonthAfter();  }### Answer:
@Test public void testIncludes() { final Date startDate = createDate(2005, 9, 14, 0, 0, 0); final Date endDate = createDate(2005, 9, 20, 23, 59, 59); final TimeRange timeRange = new TimeRange(startDate, endDate); Date date = createDate(2005, 9, 16, 13, 44, 9); assertTrue(timeRange.includes(date.getTime())); date = createDate(2006, 9, 16, 13, 44, 9); assertFalse(timeRange.includes(date.getTime())); date = createDate(2005, 9, 14, 0, 0, 1); assertTrue(timeRange.includes(date.getTime())); date = createDate(2005, 9, 13, 23, 59, 59); assertFalse(timeRange.includes(date.getTime())); date = createDate(2005, 9, 20, 23, 59, 58); assertTrue(timeRange.includes(date.getTime())); date = createDate(2005, 9, 21, 0, 0, 0); assertFalse(timeRange.includes(date.getTime())); }