Path () { try { Path file = tempDir.newFile("mutant.jar").toPath(); try (JarOutputStream jar = new JarOutputStream(Files.newOutputStream(file))) { writeEntry(jar, "mutant1/aB.class", classBytes("mutant1.aB", "m1")); writeEntry(jar, "mutant1/ab.class", classBytes("mutant1.ab", "m2")); writeEntry(jar, "MUTANT2/C.class", classBytes("MUTANT2.C", "m3")); writeEntry(jar, "mutant2/D.class", classBytes("mutant2.D", "m4")); } return file; } catch (IOException e) { throw new UncheckedIOException(e); } }