@Test
public void testToFileSizeValue() throws Exception {

    String kb = Misc.toFileSize(150000, false, true);
    String mb = Misc.toFileSize(15000000, true);
    String gb = Misc.toFileSize(Long.parseLong("3221225472"));
    assertEquals("3GB", gb);
    assertEquals("14 MB", mb);
    assertEquals("146KB", kb);
}