resourceAttributes.putValue("drink", "margarita");
manifest.getEntries().put("resource", resourceAttributes);
File targetDir = new File(BASEDIR, "target");
jarFile = new File(targetDir, "resourceFinderTest.jar");
JarOutputStream jarOutputStream = new JarOutputStream(new FileOutputStream(jarFile), manifest);
jarOutputStream.putNextEntry(new ZipEntry("resource"));
jarOutputStream.write("resource3".getBytes());
jarOutputStream.putNextEntry(new ZipEntry("jar3"));
jarOutputStream.write("jar3".getBytes());
IoUtil.close(jarOutputStream);
alternateJarFile = new File(targetDir, "alternate.jar");
log.debug(alternateJarFile.getAbsolutePath());
jarOutputStream = new JarOutputStream(new FileOutputStream(alternateJarFile), manifest);
jarOutputStream.putNextEntry(new ZipEntry("resource"));
jarOutputStream.write("resource4".getBytes());
jarOutputStream.putNextEntry(new ZipEntry("jar4"));
jarOutputStream.write("jar4".getBytes());
IoUtil.close(jarOutputStream);
testResource = new File(targetDir, "testResource");
FileOutputStream fileOutputStream = new FileOutputStream(testResource);
fileOutputStream.write("testResource".getBytes());