### Question:
XURI implements Comparable { @Override public final boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof XURI)) { return false; } XURI xuri = (XURI) o; return new EqualsBuilder() .append(uri, xuri.uri) .append(type, xuri.type) .append(id, xuri.id) .isEquals(); } XURI(String inputBaseURI, String type, String id);  XURI(String uri); final String getUri(); final String getType(); final EntityType getTypeAsEntityType(); final String getId(); final String getPath(); final Resource getAsResource(); @Override final String toString(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override final int compareTo(Object o);  }### Answer:
@Test public void equals() throws Exception { String uri = BaseURI.work() + "w5434123599"; XURI xuri = new XURI(uri); assertTrue(xuri.equals(new XURI(uri))); }