assertEquals(1, parentId.size());
assertEquals("groupId/types/artifactId-version.type", ((URI)parentId.get(0)).getPath());
}
public void testBothParent() throws Exception {
DependencyType import1 = DependencyType.Factory.newInstance();
import1.setUri("import1");
DependencyType import2 = DependencyType.Factory.newInstance();
import2.setUri("import2");
List parentId = ServiceConfigBuilder.getParentID("attribute", new DependencyType[] {import1, import2});
assertEquals(3, parentId.size());
assertEquals("attribute", ((URI)parentId.get(0)).getPath());
assertEquals("import1", ((URI)parentId.get(1)).getPath());
assertEquals("import2", ((URI)parentId.get(2)).getPath());