### Question:
Format { public static String duration( long durationMillis ) { return duration( durationMillis, TimeUnit.DAYS, TimeUnit.MILLISECONDS ); } private  Format(); static String date(); static String date( TimeZone timeZone ); static String date( long millis ); static String date( long millis, TimeZone timeZone ); static String date( Date date ); static String date( Date date, TimeZone timeZone ); static String time(); static String time( TimeZone timeZone ); static String time( long millis ); static String time( long millis, TimeZone timeZone ); static String time( Date date ); static String time( Date date, TimeZone timeZone ); static String bytes( long bytes ); static String count( long count ); static String duration( long durationMillis ); static String duration( long durationMillis, TimeUnit highestGranularity, TimeUnit lowestGranularity ); static final TimeZone DEFAULT_TIME_ZONE; static final String DATE_FORMAT; static final String TIME_FORMAT; }### Answer:
@Test void displayDuration() { assertThat( duration( MINUTES.toMillis( 1 ) + SECONDS.toMillis( 2 ) ), is( "1m 2s" ) ); assertThat( duration( 42 ), is( "42ms" ) ); assertThat( duration( 0 ), is( "0ms" ) ); }