@Test
public void testReadBool() throws IOException {

  boolean l = r.nextBoolean();
  byte[] bs = BytesUtils.boolToBytes(l);
  InputStream in = new ByteArrayInputStream(bs);
  assertEquals(l, BytesUtils.readBool(in));
}