@Test
public void testReadInt() throws IOException {

  int l = r.nextInt();
  byte[] bs = BytesUtils.intToBytes(l);
  InputStream in = new ByteArrayInputStream(bs);
  assertEquals(l, BytesUtils.readInt(in));
}