@Test
public void bytesToString() {

    assertEquals("0", StringUtil.bytesToString(null));
    assertEquals("0", StringUtil.bytesToString(new byte[] {}));
    assertEquals("0", StringUtil.bytesToString(new byte[] { 0, 0, 0, 0, 0, 0 }));
    assertEquals("1", StringUtil.bytesToString(new byte[] { 0, 0, 0, 0, 0, 1 }));
    assertEquals("GWO823H", StringUtil.bytesToString(new byte[] { 1, 0, 0, 0, 0, 0 }));
    assertEquals("cIx81", StringUtil.bytesToString(new byte[] { 0, 1, 2, 10, 62 }));
    assertEquals("cIx8QaO8KjH", StringUtil.bytesToString(new byte[] { 0, 1, 2, 10, 62, 0, 1, 2, 10, 62 }));
    assertEquals("IJG2Y0YVRQ5V2", StringUtil.bytesToString(new byte[] { 0, 1, 2, 10, 62, 0, 1, 2, 10, 62 }, true));
}