@Test
public void testReadBsdiffLong_IntegerMinValue() throws Exception {

  long expected = -0x80000000L;
  long actual =
      BsPatch.readBsdiffLong(
          new ByteArrayInputStream(
              new byte[] {
                (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x80,
                (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x80
              }));
  Assert.assertEquals(expected, actual);
}