FileUtils.moveFile(jar, zip);
final JarPluginArtifact jarArtifact = new JarPluginArtifact(zip);
JsonManifest jsonMf = new JsonManifestHandler().read(jarArtifact);
PluginArtifact artifact = zipTransformer.convertConventionZipToPluginJar(jsonMf, jarArtifact);
JarFile jarFile = new JarFile(artifact.toFile());
Manifest mf = jarFile.getManifest();
for (Map.Entry<String,String> entry : expectedHeaders.entrySet())
{
assertEquals(entry.getValue(), mf.getMainAttributes().getValue(entry.getKey()));
}