MockArtifactProblemsHolder (CompositePackagingElement<?> root, final ArtifactType artifactType) { final MockArtifactProblemsHolder validationManager = new MockArtifactProblemsHolder(); final Artifact artifact = addArtifact("artifact", artifactType, root); artifactType.checkRootElement(root, artifact, validationManager); return validationManager; }