@Test
public void testBin2Str() {

  assertNull(JBBPUtils.bin2str(null, true));
  assertNull(JBBPUtils.bin2str(null, false));
  assertEquals("01010101 10101010", JBBPUtils.bin2str(new byte[] {0x55, (byte) 0xAA}, true));
  assertEquals("0101010110101010", JBBPUtils.bin2str(new byte[] {0x55, (byte) 0xAA}, false));
  assertEquals("00001001", JBBPUtils.bin2str(new byte[] {0x9}, false));
  assertEquals("1010101001010101", JBBPUtils.bin2str(new byte[] {0x55, (byte) 0xAA}, JBBPBitOrder.MSB0, false));
  assertEquals("0101010110101010", JBBPUtils.bin2str(new byte[] {0x55, (byte) 0xAA}));
}