### Question:
CalendarLogic { public LocalDateTime getLocalDateTimeEnd(Event event) { if (isAllDay(event)) { return LocalDateTime.parse(event.getEnd().getDate().toString() + "T23:59:59.999", formatter).minusDays(1); } return ZonedDateTime.parse(event.getEnd().getDateTime().toString()).withZoneSameInstant(ZoneId.systemDefault()) .toLocalDateTime(); }  void setEvent(CalendarEvent calendarEvent); List<CalendarEvent> getEvents(int number); List<CalendarEvent> getEventsAt(LocalDateTime chosenDay); DateTime getDateTime(LocalDateTime ldt, int plusDays); static boolean isAllDay(Event event); LocalDateTime getLocalDateTimeStart(Event event); LocalDateTime getLocalDateTimeEnd(Event event);  }### Answer:
@Test void testGetLocalDateTimeEnd() { assertThat(this.callog.getLocalDateTimeEnd(this.event1), is(LocalDateTime.of(2015, 05, 29, 23, 59, 59, 999000000))); assertThat(this.callog.getLocalDateTimeEnd(this.event2), is(LocalDateTime.of(2015, 05, 29, 15, 30))); }