void (int record, byte[] result) { RecordData savedData = currentRecords.get(record); if (savedData == null) { return; } int currentHash = 0; if (savedData.compressedSize != result.length || savedData.compressedHash != (currentHash = new ByteArraySequence(result).hashCode())) { String msg = "expected compressed len = " + savedData.compressedSize + ", but actual len = " + result.length + ", \n" + " expected content hash = " + savedData.compressedHash + ", but actual hash = " + currentHash; throw new AssertionError(msg); } }