URITools { public URI relativeUriForBean(WorkflowBean bean, WorkflowBean relativeToBean) { URI rootUri = uriForBean(relativeToBean); URI beanUri = uriForBean(bean); return relativePath(rootUri, beanUri); }  URI relativePath(URI base, URI uri); URI relativeUriForBean(WorkflowBean bean, WorkflowBean relativeToBean); WorkflowBean resolveUri(URI uri, WorkflowBundle wfBundle); URI uriForBean(WorkflowBean bean); String validFilename(String name);  }
@Test public void wfBundleSelfRelative() { assertEquals(URI.create(""), uriTools.relativeUriForBean(wfBundle, wfBundle)); }