@Test
public void testReadBsdiffLong() throws Exception {

  byte[] data = {
    (byte) 0x78, (byte) 0x56, (byte) 0x34, (byte) 0x12, (byte) 0, (byte) 0, (byte) 0, (byte) 0,
    (byte) 0xef, (byte) 0xbe, (byte) 0xad, (byte) 0x0e, (byte) 0, (byte) 0, (byte) 0, (byte) 0
  };
  ByteArrayInputStream inputStream = new ByteArrayInputStream(data);
  long actual = BsPatch.readBsdiffLong(inputStream);
  Assert.assertEquals(0x12345678, actual);
  actual = BsPatch.readBsdiffLong(inputStream);
  Assert.assertEquals(0x0eadbeef, actual);
}