public static String printUnitFromBytesDot(long bytes) {
        return printUnitFromBytes(bytes, '.');
    }
@Test
    public void testPrintUnitFromBytesDot() {
        char decimalSeparator = '.';

        assertEquals("999 B", printUnitFromBytes(999));
        assertEquals("1" + decimalSeparator + "0 kB", printUnitFromBytesDot(1000));
        assertEquals("1" + decimalSeparator + "0 kB", printUnitFromBytesDot(1001));
        assertEquals("1" + decimalSeparator + "2 kB", printUnitFromBytesDot(1201));

        assertEquals("1000" + decimalSeparator + "0 kB", printUnitFromBytesDot(999999));
        assertEquals("1" + decimalSeparator + "0 MB", printUnitFromBytesDot(1000000));
        assertEquals("1" + decimalSeparator + "0 MB", printUnitFromBytesDot(1000001));

        assertEquals("1" + decimalSeparator + "5 MB", printUnitFromBytesDot(1500001));
    }