### Question:
AssetNoteLog extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetNoteLog)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetNoteLog that = (AssetNoteLog) objectToCompare; return Objects.equals(getNoteLogBean(), that.getNoteLogBean()) && Objects.equals(getNotes(), that.getNotes()); } AssetNoteLog(NoteLog noteLogBean,
                        AssetNotes notes);  AssetNoteLog(AssetDescriptor parentAsset,
                        NoteLog noteLogBean,
                        AssetNotes notes);  AssetNoteLog(AssetDescriptor parentAsset, AssetNoteLog templateNoteLog); String getDisplayName(); String getDescription(); AssetNotes getNotes(); @Override String toString(); @Override boolean equals(Object objectToCompare);  }### Answer:
@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); AssetNoteLog sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); assertFalse(getTestObject().equals(getYetAnotherDifferentObject())); }