### Question:
AssetResponse 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; } AssetResponse that = (AssetResponse) objectToCompare; return getCertificationCount() == that.getCertificationCount() && getCommentCount() == that.getCommentCount() && getConnectionCount() == that.getConnectionCount() && getExternalIdentifierCount() == that.getExternalIdentifierCount() && getExternalReferencesCount() == that.getExternalReferencesCount() && getInformalTagCount() == that.getInformalTagCount() && getLicenseCount() == that.getLicenseCount() && getLikeCount() == that.getLikeCount() && getKnownLocationsCount() == that.getKnownLocationsCount() && getNoteLogsCount() == that.getNoteLogsCount() && getRatingsCount() == that.getRatingsCount() && getRelatedAssetCount() == that.getRelatedAssetCount() && getRelatedMediaReferenceCount() == that.getRelatedMediaReferenceCount() && getSchemaType() == that.getSchemaType() && getLastAttachment() == that.getLastAttachment() && Objects.equals(getAsset(), that.getAsset()); } AssetResponse();  AssetResponse(AssetResponse template); Asset getAsset(); void setAsset(Asset asset); int getCertificationCount(); void setCertificationCount(int certificationCount); int getCommentCount(); void setCommentCount(int commentCount); int getConnectionCount(); void setConnectionCount(int connectionCount); int getExternalIdentifierCount(); void setExternalIdentifierCount(int externalIdentifierCount); int getExternalReferencesCount(); void setExternalReferencesCount(int externalReferencesCount); int getInformalTagCount(); void setInformalTagCount(int informalTagCount); int getLicenseCount(); void setLicenseCount(int licenseCount); int getLikeCount(); void setLikeCount(int likeCount); int getKnownLocationsCount(); void setKnownLocationsCount(int knownLocationsCount); int getNoteLogsCount(); void setNoteLogsCount(int noteLogsCount); int getRatingsCount(); void setRatingsCount(int ratingsCount); int getRelatedAssetCount(); void setRelatedAssetCount(int relatedAssetCount); int getRelatedMediaReferenceCount(); void setRelatedMediaReferenceCount(int relatedMediaReferenceCount); SchemaType getSchemaType(); void setSchemaType(SchemaType schemaType); LastAttachment getLastAttachment(); void setLastAttachment(LastAttachment lastAttachment); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testExceptionProperties() { Map<String, Object> propertyMap; AssetResponse testObject = new AssetResponse(); assertTrue(testObject.getExceptionProperties() == null); propertyMap = null; testObject = new AssetResponse(); testObject.setExceptionProperties(null); assertTrue(testObject.getExceptionProperties() == null); propertyMap = new HashMap<>(); testObject = new AssetResponse(); testObject.setExceptionProperties(propertyMap); assertTrue(testObject.getExceptionProperties() == null); propertyMap.put("propertyName", "propertyValue"); testObject = new AssetResponse(); 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())); AssetResponse sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); AssetResponse differentObject = getTestObject(); differentObject.setExceptionErrorMessage("Different"); assertFalse(getTestObject().equals(differentObject)); }