@Test
public void testReadBits5() throws EOFException {

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