### Question:
NoteLogResponse extends OCFOMASAPIResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } NoteLogResponse that = (NoteLogResponse) objectToCompare; return getNoteCount() == that.getNoteCount() && Objects.equals(getNoteLog(), that.getNoteLog()) && Objects.equals(getNotes(), that.getNotes()); } NoteLogResponse();  NoteLogResponse(NoteLogResponse template); NoteLog getNoteLog(); void setNoteLog(NoteLog noteLog); List<Note> getNotes(); void setNotes(List<Note> notes); int getNoteCount(); void setNoteCount(int noteCount); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testExceptionProperties() { Map<String, Object> propertyMap; NoteLogResponse testObject = new NoteLogResponse(); assertTrue(testObject.getExceptionProperties() == null); propertyMap = null; testObject = new NoteLogResponse(); testObject.setExceptionProperties(propertyMap); assertTrue(testObject.getExceptionProperties() == null); propertyMap = new HashMap<>(); testObject = new NoteLogResponse(); testObject.setExceptionProperties(propertyMap); assertTrue(testObject.getExceptionProperties() == null); propertyMap.put("propertyName", "propertyValue"); testObject = new NoteLogResponse(); testObject.setExceptionProperties(propertyMap); Map<String, Object> retrievedPropertyMap = testObject.getExceptionProperties(); assertTrue(retrievedPropertyMap != null); assertFalse(retrievedPropertyMap.isEmpty()); assertTrue("propertyValue".equals(retrievedPropertyMap.get("propertyName"))); }
@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); NoteLogResponse sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); NoteLogResponse differentObject = getTestObject(); differentObject.setExceptionErrorMessage("Different"); assertFalse(getTestObject().equals(differentObject)); }