ArtifactManager { String determineVersionViaDependenciesConf(String groupId, String artifactId, String packaging, String classifier) throws IOException { if (this.deps != null) { MavenArtifactDescriptor found = this.deps.find(groupId, artifactId, packaging, classifier); if (found != null) { return found.version(); } } return null; } ArtifactManager(WildFlySwarmDependenciesConf deps);  ArtifactManager(InputStream in);  ArtifactManager(); JavaArchive artifact(String gav); JavaArchive artifact(String gav, String asName); List<JavaArchive> allArtifacts();  }
@Test public void testDetermineVersion() throws Exception { assertThat(manager.determineVersionViaDependenciesConf("org.jboss.spec.javax.enterprise.concurrent", "jboss-concurrency-api_1.0_spec", "jar", null)) .isEqualTo("1.0.0.Final"); assertThat(manager.determineVersionViaDependenciesConf("org.jolokia", "jolokia-war", "war", null)) .isEqualTo("1.3.2"); assertThat(manager.determineVersionViaDependenciesConf(ARTIFACT_INVALID_GROUP_ID, ARTIFACT_INVALID_ARTIFACT_ID, ARTIFACT_INVALID_PACKAGING, null)) .isNull(); }