ResourceIdentifier implements Serializable { @Override public int hashCode() { int result = type != null ? type.hashCode() : 0; result = 31 * result + (id != null ? id.hashCode() : 0); return result; } ResourceIdentifier();  ResourceIdentifier(ResourceIdentifier identifier);  ResourceIdentifier(String type, String id); @Deprecated Document getContext(); @Deprecated void setContext(Document document); Document getDocument(); void setDocument(Document document); String getType(); void setType(String type); String getId(); void setId(String id); JsonBuffer getMeta(); void setMeta(JsonBuffer meta); @Override String toString(); @SuppressWarnings("SimplifiableIfStatement") @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void equality_of_hashcode() throws Exception { assertEquals(createResourceIdentifier().hashCode(), createResourceIdentifier().hashCode()); }