### Question:
Fence { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Fence fence = (Fence) o; return Objects.equals(fenceType, fence.fenceType) && Objects.equals(name, fence.name) && Objects.equals(latitude, fence.latitude) && Objects.equals(longitude, fence.longitude) && Objects.equals(radius, fence.radius) && Objects.equals(country, fence.country) && Objects.equals(administrativeArea, fence.administrativeArea) && Objects.equals(postalCode, fence.postalCode); } @JsonCreator  Fence(@JsonProperty("name") String name, @JsonProperty("type") String fenceType,
                 @JsonProperty("latitude") Double latitude, @JsonProperty("longitude") Double longitude,
                 @JsonProperty("radius") Double radius, @JsonProperty("country") String country,
                 @JsonProperty("administrative_area") String administrativeArea,
                 @JsonProperty("postal_code") String postalCode); String getName(); String getType(); Double getLatitude(); Double getLongitude(); Double getRadius(); String getCountry(); String getAdministrativeArea(); String getPostalCode(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String TYPE_TERRITORY; static final String TYPE_GEO_CIRCLE; static final String FACTOR_INHERENCE; static final String FACTOR_KNOWLEDGE; static final String FACTOR_POSSESSION; }### Answer:
@Test public void testEquals() { Fence other = new Fence("name", "type", 1.0, 2.0, 3.0, "country", "admin", "postal"); assertEquals(fence, other); }