### Question:
TimeZoneDueDateService implements DueDateService { @Override public Date computeDueDate(Date occurringTime) { notNull(occurringTime); return new DateTime(occurringTime, zone).toLocalDate().toDate(); }  @Override Date computeDueDate(Date occurringTime); void setZone(String zone);  }### Answer:
@Test public void testComputeDueDate() throws Exception { final String zone = "America/New_York"; DateTime dateTime = DateTime.now(DateTimeZone.forTimeZone(TimeZone.getTimeZone(zone))); final TimeZoneDueDateService service = new TimeZoneDueDateService(); service.setZone(zone); final Date date = service.computeDueDate(dateTime.toDate()); assertThat(date, equalTo(dateTime.toLocalDate().toDate())); }