@Test
public void testAlternativePackageRootCreatesOnlyOneNode() throws RepositoryException {

    JcrPackageManagerImpl jcrPackageManager = new JcrPackageManagerImpl(admin, new String[]{"/var/packages", "/etc/packages"});
    Node packageNode = jcrPackageManager.getPackageRoot(false);
    assertEquals("/var/packages", packageNode.getPath());
    assertNodeMissing("/etc/packages");
}