DateProvider { public Date now() { return new Date(); }  Date now();  }
@Test public void shouldReturnAValidDate() throws Exception { DateProvider dateProvider = new DateProvider(); assertThat(dateProvider.now().getTime(), is(lessThanOrEqualTo(new Date().getTime()))); }