String qxri = "xri://@a*b*c/d/e?f=g";
try {
URI sepURI = new URI("http://example.com/hello");
String result = resolver.constructURI(sepURI, "local",
new XRI(qxri));
assertTrue("Invalid constructed URI for append=local '" + result
+ "'", result.equals(sepURI.toString() + "/d/e?f=g"));
result = resolver.constructURI(sepURI, "qxri", new XRI(qxri));
assertTrue("Invalid constructed URI for append=qxri '" + result
+ "'", result.equals(sepURI.toString() + "@a*b*c/d/e?f=g"));
System.out.println("result = " + result);
} catch (Exception oEx) {
fail("Got wrong exception while trying to resolve IRI " + oEx);