public static void verifyChunkedSums(int bytesPerSum, int checksumType,
      ByteBuffer sums, ByteBuffer data, String fileName, long basePos)
      throws ChecksumException {
    nativeComputeChunkedSums(bytesPerSum, checksumType,
        sums, sums.position(),
        data, data.position(), data.remaining(),
        fileName, basePos, true);
  }
@Test
  public void testVerifyChunkedSumsFail() {
    allocateDirectByteBuffers();
    fillDataAndInvalidChecksums();
    assertThrows(ChecksumException.class,
        () -> NativeCrc32.verifyChunkedSums(bytesPerChecksum, checksumType.id,
            checksums, data, fileName, BASE_POSITION));
  }