Checksums { public static boolean verifyChecksum(CallFrame msg) { return (calculateChecksum(msg) == msg.getChecksum()); } private  Checksums(); static boolean verifyChecksum(CallFrame msg); static boolean verifyExistingChecksum(CallFrame msg, long checksum); static long calculateChecksum(CallFrame msg); static long calculateChecksum(CallFrame msg, long digestSeed);  }
@Test public void testVerifyAcceptNoChecksum() throws Exception { CallRequestFrame callRequestFrame = Fixtures.callRequest(0, false, Unpooled.EMPTY_BUFFER); assertTrue(Checksums.verifyChecksum(callRequestFrame)); callRequestFrame.release(); }