@Test
public void testIsZero() {

    byte[] bytes = new byte[100];
    assertTrue(PlatformDependent.isZero(bytes, 0, 0));
    assertTrue(PlatformDependent.isZero(bytes, 0, -1));
    assertTrue(PlatformDependent.isZero(bytes, 0, 100));
    assertTrue(PlatformDependent.isZero(bytes, 10, 90));
    bytes[10] = 1;
    assertTrue(PlatformDependent.isZero(bytes, 0, 10));
    assertFalse(PlatformDependent.isZero(bytes, 0, 11));
    assertFalse(PlatformDependent.isZero(bytes, 10, 1));
    assertTrue(PlatformDependent.isZero(bytes, 11, 89));
}