### Question:
DatabaseDriverDTO { @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof DatabaseDriverDTO)) { return false; } final DatabaseDriverDTO other = (DatabaseDriverDTO) obj; return new EqualsBuilder() .append(this.location, other.location) .isEquals(); } DatabaseDriverDTO(final String location); String getLocation(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void equalsIsSymmetric() { assertTrue("Equals is not symmetric", x.equals(y) && y.equals(x)); }
@Test public void equalsIsTransitive() { assertTrue("Equals is not transitive", x.equals(y) && y.equals(z) && x.equals(z)); }
@Test public void equalsIsCautious() { assertFalse("Comparision with null should always return false", x.equals(null)); }
@Test public void equalsIsTypeAware() { assertFalse("Comparison with different type should always return false", x.equals(this)); }
@Test public void notEqualForDifferentLocations() { assertFalse("Location is not considered by equals", x.equals(notX)); }