### Question:
XURI implements Comparable { public final Resource getAsResource() { return ResourceFactory.createResource(uri); } 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 getAsResource() throws Exception { String uri = BaseURI.work() + "w998889128"; Resource resource = ResourceFactory.createResource(uri); XURI xuri = new XURI(uri); assertEquals(resource, xuri.getAsResource()); }