@Test
public void testGetPlanClassLoader() throws Exception {

    final File cacheDir = new File("target/test-output/OpearFileTest/testGetPlanClassLoader/cache");
    if (cacheDir.exists()) {
        FileUtils.deleteDirectory(cacheDir);
    }
    buildDeepTestJar();
    final Result<OpearFile> opearResult = OpearFile.fromJar(new JarFile(deepTestTarget), cacheDir);
    assertTrue("is successful", opearResult.isSuccess());
    OpearFile opearFile = opearResult.getOrDefault(null);
    assertNotNull("not null", opearFile);
    final String checklistName = "OAKPAL-INF/checklists/embedded-checklist.json";
    final ClassLoader controlCl = new URLClassLoader(new URL[]{embedModuleTarget.toURI().toURL()}, null);
    assertNotNull("control checklist URL not null", controlCl.getResource(checklistName));
    final ClassLoader classLoader = opearFile.getPlanClassLoader(new URLClassLoader(new URL[0], null));
    final URL embeddedChecklistUrl = classLoader.getResource(checklistName);
    assertNotNull("checklist URL not null: " + printClassLoader(classLoader), embeddedChecklistUrl);
}