### Question:
DateService { public Date now() { return new Date(); }  Date now();  }### Answer:
@Test public void now_should_return_the_current_date() { Long before = Long.valueOf(new Date().getTime() - 1); Date now = cut.now(); Long after = Long.valueOf(new Date().getTime() + 1); assertThat(now.getTime()).isBetween(before, after); }