@Test
public void testReadBits_ExceptionForWrongArgument() throws Exception {

  final JBBPBitInputStream inLe = new JBBPBitInputStream(new ByteArrayInputStream(JBBPUtils.str2bin(TEST_BYTES, JBBPBitOrder.LSB0)));
  try {
    inLe.readBits(JBBPBitNumber.decode(0));
    fail("Must throw IAE");
  } catch (IllegalArgumentException ex) {
  }
  try {
    inLe.readBits(JBBPBitNumber.decode(-5));
    fail("Must throw IAE");
  } catch (IllegalArgumentException ex) {
  }
  try {
    inLe.readBits(JBBPBitNumber.decode(9));
    fail("Must throw IAE");
  } catch (IllegalArgumentException ex) {
  }
}