    @Test
    public void packFromJarTest() throws Exception {

        byte[] zip = CodePoolUtils.createCodePoolDataFromClass(SimpleExecutor.class);
        Set<String> entries = new HashSet<>();
        try (ZipInputStream in = new ZipInputStream(new ByteArrayInputStream(zip));) {
            ZipEntry nextEntry;
            while ((nextEntry = in.getNextEntry()) != null) {
                if (nextEntry.isDirectory()) {
                    System.out.println("dir  " + nextEntry.getName());
                } else {
                    System.out.println("file  " + nextEntry.getName());
                    entries.add(nextEntry.getName());
                }
            }
        }
        
        // invoking the test from Maven in single project mode the class is loaded from the local repository
        boolean ok1 = entries.stream().filter(s -> s.startsWith("majordodo-test-clients-") && s.endsWith(".jar")).findFirst().isPresent();
        // invoking the test from Maven Reactor puts into the classpath the "target/classes" directory of majordodo-test-clients
        boolean ok2 = entries.stream().filter(s -> s.startsWith("generated_") && s.endsWith(".jar")).findFirst().isPresent();
        assertTrue(ok1 || ok2);
    }