@Test
public void testGetFirstWeekMinDate() throws Exception {

    LocalDate today = LocalDate.now();
    LocalDate minDate = today.minusMonths(2);
    LocalDate date = minDate.minusWeeks(1);
    RangeUnit unit = new Week(date, today, minDate, today);
    LocalDate firstMonday = minDate.withDayOfMonth(1).withDayOfWeek(DateTimeConstants.MONDAY);
    int week = Days.daysBetween(firstMonday, minDate).dividedBy(DateTimeConstants.DAYS_PER_WEEK).getDays();
    assertEquals(week, unit.getFirstWeek(date));
}