* Installs a package that contains /tmp/foo/bar/tobi and then installs one
* that is empty but contains a filter for '/tmp/foo/bar'. expect /tmp/foo/bar to be removed.
*/
@Test
public void installEmptyLevel3() throws RepositoryException, IOException, PackageException {
JcrPackage pack = packMgr.upload(getStream("testpackages/tmp.zip"), false);
assertNotNull(pack);
pack.install(getDefaultOptions());
assertNodeExists("/tmp/foo/bar/tobi");
// now install the empty package
pack = packMgr.upload(getStream("testpackages/empty_tmp_foo_bar.zip"), false);
assertNotNull(pack);
pack.install(getDefaultOptions());
assertNodeExists("/tmp/foo");
assertNodeMissing("/tmp/foo/bar");
}