### Question:
Checksum { public static boolean verifyChecksum(ByteString byteString, ChecksumData checksumData, int startIndex) throws OzoneChecksumException { final ByteBuffer buffer = byteString.asReadOnlyByteBuffer(); return verifyChecksum(buffer, checksumData, startIndex); } Checksum(ChecksumType type, int bytesPerChecksum); @VisibleForTesting  Checksum(); static ByteString int2ByteString(int n); ChecksumData computeChecksum(byte[] data, int off, int len); ChecksumData computeChecksum(byte[] data); ChecksumData computeChecksum(ByteBuffer data); ChecksumData computeChecksum(ChunkBuffer data); static boolean verifyChecksum(ByteString byteString,
      ChecksumData checksumData, int startIndex); static boolean verifyChecksum(byte[] data, ChecksumData checksumData); @VisibleForTesting static ContainerProtos.ChecksumData getNoChecksumDataProto(); static final Logger LOG; }### Answer:
@Test public void testVerifyChecksum() throws Exception { Checksum checksum = getChecksum(null); int dataLen = 55; byte[] data = RandomStringUtils.randomAlphabetic(dataLen).getBytes(); ChecksumData checksumData = checksum.computeChecksum(data); Assert.assertEquals(6, checksumData.getChecksums().size()); Assert.assertTrue("Checksum mismatch", Checksum.verifyChecksum(data, checksumData)); }