@Test
public void testDateRetrieving() {
DateTime date = new DateTime(2013, 10, 2, 12, 0);
LastWeekDateRangeHandler handler = new LastWeekDateRangeHandler();
DateTime dateStart = handler.retrieveDateStart(date);
Assert.assertEquals(2013, dateStart.getYear());
Assert.assertEquals(9, dateStart.getMonthOfYear());
Assert.assertEquals(23, dateStart.getDayOfMonth());
DateTime dateEnd = handler.retrieveDateEnd(date);
Assert.assertEquals(2013, dateEnd.getYear());
Assert.assertEquals(9, dateEnd.getMonthOfYear());
Assert.assertEquals(29, dateEnd.getDayOfMonth());
DateTime dateMonth = handler.retrieveMonth(date);
Assert.assertNull(dateMonth);
}