NiceTime { public String format( Date then ) { return prettyTime.format( then ); } NiceTime(); String format( Date then );  }
@Test public void formatNow() { String actual = niceTime.format( now() ); assertThat( actual ).contains( "moments" ); }
@Test public void formatFiveMinutesAgo() { String actual = niceTime.format( fiveMinutesAgo() ); assertThat( actual ).contains( "5 minutes ago" ); }