@Test
public void testReadBits6() throws EOFException {

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