@Test
public void testGetMonthAfter() {

    final Date startDate = createDate(2010, 3, 13, 0, 0, 0);
    final Date endDate = createDate(2010, 5, 17, 23, 59, 59);
    final TimeRange timeRange = new TimeRange(startDate, endDate);
    final TimeRange centerMonth = timeRange.getMonthAfter();
    assertNotNull(centerMonth);
    assertEquals(createDate(2010, 5, 1, 0, 0, 0).getTime(), centerMonth.getStartDate().getTime());
    assertEquals(createDate(2010, 6, 1, 0, 0, 0).getTime(), centerMonth.getStopDate().getTime());
}