@Test
public void toReadableSize() {

    Locale.setDefault(Locale.US); // Fixed locale for the test
    assertEquals("1.0000 TB", NumbersUtil.toReadableSize((1024l * 1024l * 1024l * 1024l)));
    assertEquals("1.00 GB", NumbersUtil.toReadableSize(1024 * 1024 * 1024));
    assertEquals("1.00 MB", NumbersUtil.toReadableSize(1024 * 1024));
    assertEquals("1.00 KB", NumbersUtil.toReadableSize((1024)));
    assertEquals("1023 bytes", NumbersUtil.toReadableSize((1023)));
}