@Test
public void testReadBits1() throws EOFException {

  ByteBuf byteBuf = Unpooled.wrappedBuffer(new byte[] {(byte) 0b10111010});
  BitReader bitReader = new BitReader(byteBuf);
  assertThat(bitReader.readBits(1), is((long) 1));
  assertThat(bitReader.readBits(1), is((long) 0));
  assertThat(bitReader.readBits(1), is((long) 1));
  assertThat(bitReader.readBits(1), is((long) 1));
  assertThat(bitReader.readBits(1), is((long) 1));
  assertThat(bitReader.readBits(1), is((long) 0));
  assertThat(bitReader.readBits(1), is((long) 1));
  assertThat(bitReader.readBits(1), is((long) 0));
}