### Question:
TPMMeasurementRecord extends ExaminableRecord { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } TPMMeasurementRecord other = (TPMMeasurementRecord) obj; if (!hash.equals(other.hash)) { return false; } if (pcrId != other.pcrId) { return false; } return true; } TPMMeasurementRecord(final int pcrId, final Digest hash);  TPMMeasurementRecord(final int pcrId, final String hash);  TPMMeasurementRecord(final int pcrId, final byte[] hash); protected  TPMMeasurementRecord(); static void checkForValidPcrId(final int pcrId); int getPcrId(); Digest getHash(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); static final int MIN_PCR_ID; static final int MAX_PCR_ID; static final int SHA_BYTE_LENGTH; static final int SHA_256_BYTE_LENGTH; }### Answer:
@Test public final void testEquals() { TPMMeasurementRecord r1 = getDefaultRecord(); TPMMeasurementRecord r2 = getDefaultRecord(); Assert.assertEquals(r1, r2); Assert.assertEquals(r2, r1); Assert.assertEquals(r1, r1); Assert.assertEquals(r2, r2); }