void (final @Nullable String mainClass, final @Nullable String classpath) { if (myArtifact.getArtifactType() instanceof JarArtifactType) { ArtifactsTestUtil.assertManifest(myArtifact, getContext(), mainClass, classpath); } else { final CompositePackagingElement<?> archive = (CompositePackagingElement<?>)myArtifact.getRootElement().getChildren().get(0); ArtifactsTestUtil.assertManifest(archive, getContext(), myArtifact.getArtifactType(), mainClass, classpath); } }