ServicePropertyInfo { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !(o instanceof ServicePropertyInfo)) return false; ServicePropertyInfo that = (ServicePropertyInfo) o; return new EqualsBuilder() .append(name, that.name) .append(value, that.value) .isEquals(); }  String getName(); String getValue(); void setName(String name); void setValue(String value); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testEquals() throws Exception { EqualsVerifier.forClass(ServicePropertyInfo.class) .suppress(Warning.NONFINAL_FIELDS) .verify(); }