ArtifactUtils { public static BundleDescriptor getBundleDescriptor(ApplicationGAVModel appGAVModel) { return new BundleDescriptor.Builder() .setGroupId(appGAVModel.getGroupId()) .setArtifactId(appGAVModel.getArtifactId()) .setVersion(appGAVModel.getVersion()) .setBaseVersion(appGAVModel.getVersion()) .setType(POM_TYPE) .build(); }  static ArtifactCoordinates toArtifactCoordinates(BundleDescriptor bundleDescriptor); static Artifact toArtifact(BundleDependency bundleDependency); static List<Artifact> toArtifacts(Collection<BundleDependency> dependencies); static boolean isValidMulePlugin(Artifact artifact); static BundleDescriptor toBundleDescriptor(ArtifactCoordinates artifactCoordinates); static BundleDescriptor toBundleDescriptor(Dependency dependency); static List<Artifact> toApplicationModelArtifacts(List<BundleDependency> appDependencies); static List<Artifact> updatePackagesResources(List<Artifact> artifacts); static Artifact updatePackagesResources(Artifact artifact); static List<Artifact> updateArtifactsSharedState(List<BundleDependency> appDependencies, List<Artifact> artifacts,
                                                          Model pomModel); static void updateScopeIfDomain(Artifact artifact); static ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel); static BundleDescriptor getPomProjectBundleDescriptor(ApplicationGAVModel appGAVModel); static BundleDescriptor getBundleDescriptor(ApplicationGAVModel appGAVModel);  }
@Test public void getBundleDescriptorTest() { ApplicationGAVModel appGAVModel = new ApplicationGAVModel(GROUP_ID, ARTIFACT_ID, VERSION); BundleDescriptor actualBundleDescriptor = ArtifactUtils.getBundleDescriptor(appGAVModel); assertThat("Group id is not the expected", actualBundleDescriptor.getGroupId(), equalTo(GROUP_ID)); assertThat("Artifact id is not the expected", actualBundleDescriptor.getArtifactId(), equalTo(ARTIFACT_ID)); assertThat("Version is not the expected", actualBundleDescriptor.getVersion(), equalTo(VERSION)); assertThat("Base version is not the expected", actualBundleDescriptor.getBaseVersion(), equalTo(VERSION)); assertThat("Type is not the expected", actualBundleDescriptor.getType(), equalTo(POM_TYPE)); }