@Test
public void testStr2Bin_Default() {

  assertEquals(0, JBBPUtils.str2bin(null).length);
  assertArrayEquals(new byte[] {(byte) 0x80}, JBBPUtils.str2bin("10000000"));
  assertArrayEquals(new byte[] {(byte) 0x01}, JBBPUtils.str2bin("1"));
  assertArrayEquals(new byte[] {(byte) 0x80, 0x01}, JBBPUtils.str2bin("10000000X00x0Zz1"));
  assertArrayEquals(new byte[] {(byte) 0x80, 0x01, 0x07}, JBBPUtils.str2bin("10000000000000010111"));
  assertArrayEquals(new byte[] {(byte) 0x80, 0x01, 0x07}, JBBPUtils.str2bin("10000000_00000001_0111"));
  try {
    JBBPUtils.str2bin("10001021");
    fail("Must throw IAE");
  } catch (IllegalArgumentException ex) {
  }
}