### Question:
Format { public static String bytes( long bytes ) { return suffixCount( bytes, BYTE_SIZES, KB ); } 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 shouldDisplayBytes() { String format = Format.bytes( 123 ); assertTrue( format.contains( String.valueOf( 123 ) ) ); assertTrue( format.endsWith( " B" ) ); }
@Test void shouldDisplayKiloBytes() { String format = Format.bytes( 1_234 ); assertTrue( format.startsWith( "1" ) ); assertTrue( format.endsWith( " kB" ) ); }
@Test void shouldDisplayMegaBytes() { String format = Format.bytes( 1_234_567 ); assertTrue( format.startsWith( "1" ) ); assertTrue( format.endsWith( " MB" ) ); }
@Test void shouldDisplayGigaBytes() { String format = Format.bytes( 1_234_567_890 ); assertTrue( format.startsWith( "1" ) ); assertTrue( format.endsWith( " GB" ) ); }