@Test
public void testReadBits7() throws EOFException {

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