### Question:
AssetLocation extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetLocation)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetLocation that = (AssetLocation) objectToCompare; return Objects.equals(getLocationBean(), that.getLocationBean()); } AssetLocation(Location   locationBean);  AssetLocation(AssetDescriptor  parentAsset,
                         Location         locationBean);  AssetLocation(AssetDescriptor  parentAsset, AssetLocation templateLocation); String getDisplayName(); String getDescription(); @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())); AssetLocation sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }