Error implements Serializable { @Override public int hashCode() { int result = id != null ? id.hashCode() : 0; result = 31 * result + (status != null ? status.hashCode() : 0); result = 31 * result + (code != null ? code.hashCode() : 0); result = 31 * result + (title != null ? title.hashCode() : 0); result = 31 * result + (detail != null ? detail.hashCode() : 0); return result; }  String getId(); void setId(String id); String getStatus(); void setStatus(String status); String getCode(); void setCode(String code); String getTitle(); void setTitle(String title); String getDetail(); void setDetail(String detail); JsonBuffer getMeta(); JsonBuffer getLinks(); void setMeta(JsonBuffer meta); void setLinks(JsonBuffer links); JsonBuffer getSource(); void setSource(JsonBuffer source); @Override String toString(); @SuppressWarnings("SimplifiableIfStatement") @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void hashcode() throws Exception { assertEquals(createError().hashCode(), createError().hashCode()); }