@Test
public void testReadBits8() throws EOFException {

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