DateHelper { static CalendarDay localDateToCalendarDay(LocalDate localDate) { return CalendarDay.from(DateTimeUtils.toDate(localDate.atStartOfDay(ZoneId.systemDefault()).toInstant())); } private  DateHelper();   }
@Test public void localDateToCalendarDay() { LocalDate localDate = LocalDate.of(2016, 11, 15); CalendarDay expectedCalendarDay = CalendarDay.from(2016, 10, 15); CalendarDay actualCalendarDay = DateHelper.localDateToCalendarDay(localDate); assertEquals(expectedCalendarDay, actualCalendarDay); }