ArtifactUtils { public static ArtifactCoordinates toArtifactCoordinates(BundleDescriptor bundleDescriptor) { ArtifactCoordinates artifactCoordinates = new ArtifactCoordinates(bundleDescriptor.getGroupId(), bundleDescriptor.getArtifactId(), bundleDescriptor.getBaseVersion(), bundleDescriptor.getType(), bundleDescriptor.getClassifier().orElse(null)); return artifactCoordinates; }  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 toArtifactCoordinatesFromMinimumRequirementsTest() { ArtifactCoordinates actualArtifactCoordinates = ArtifactUtils.toArtifactCoordinates(bundleDescriptor); assertArtifactCoordinates(actualArtifactCoordinates, DEFAULT_ARTIFACT_DESCRIPTOR_TYPE, null); }
@Test public void toArtifactCoordinatesTest() { bundleDescriptor = new BundleDescriptor.Builder().setGroupId(GROUP_ID).setArtifactId(ARTIFACT_ID).setVersion(VERSION).setBaseVersion(VERSION) .setType(POM_TYPE) .setClassifier(MULE_PLUGIN).build(); ArtifactCoordinates actualArtifactCoordinates = ArtifactUtils.toArtifactCoordinates(bundleDescriptor); assertArtifactCoordinates(actualArtifactCoordinates, POM_TYPE, MULE_PLUGIN); }