@Test
public void testReadBsdiffLong_NegativeZero() throws Exception {

  try {
    BsPatch.readBsdiffLong(
        new ByteArrayInputStream(
            new byte[] {
              (byte) 0x00,
              (byte) 0x00,
              (byte) 0x00,
              (byte) 0x00,
              (byte) 0x00,
              (byte) 0x00,
              (byte) 0x00,
              (byte) 0x80
            }));
    Assert.fail("Tolerated negative zero");
  } catch (PatchFormatException expected) {
    // Pass
  }
}