DateHelper { static LocalDate calendarDayToLocalDate(CalendarDay calendarDay) { return DateTimeUtils.toInstant(calendarDay.getDate()).atZone(ZoneId.systemDefault()).toLocalDate(); } private  DateHelper();   }
@Test public void calendarDayToLocalDate() { CalendarDay calendarDay = CalendarDay.from(2016, 10, 15); LocalDate expectedLocalDate = LocalDate.of(2016, 11, 15); LocalDate actualLocalDate = DateHelper.calendarDayToLocalDate(calendarDay); assertEquals(expectedLocalDate, actualLocalDate); }