/**
  * Test artifact uri function.
  *
  * @exception Exception if a test error occurs
  */
 public void testArtifact() throws Exception {
   String path = "dpml/tools/dpml-tools-ant";
   Resource resource = getLibrary().getResource(path);
   Type[] types = resource.getTypes();
   for (int i = 0; i < types.length; i++) {
     Type type = types[i];
     Artifact artifact = resource.getArtifact(type.getID());
     String urn =
         "artifact:"
             + type.getID()
             + ":"
             + resource.getResourcePath()
             + "#"
             + resource.getVersion();
     assertEquals("uri", urn, artifact.toURI().toString());
   }
 }
 /**
  * Test resource path.
  *
  * @exception Exception if a test error occurs
  */
 public void testResourcePath() throws Exception {
   String path = "dpml/metro/dpml-composition-runtime";
   Resource resource = getLibrary().getResource(path);
   assertEquals("resource-path", path, resource.getResourcePath());
 }