public void testUninstallNonRecursive() throws RepositoryException, IOException, PackageException {
JcrPackage pack = packMgr.upload(getStream("testpackages/subtest.zip"), false);
assertNotNull(pack);
// install
ImportOptions opts = getDefaultOptions();
opts.setNonRecursive(false);
pack.install(opts);
assertNodeExists("/tmp/a");
assertNodeExists("/tmp/b");
// uninstall
opts.setNonRecursive(true);
pack.uninstall(opts);
assertNodeMissing("/etc/packages/my_packages/sub_a.zip");
assertNodeMissing("/etc/packages/my_packages/sub_b.zip");
assertNodeExists("/tmp/a");