@Test
public void testGetPackageRootWithCreate() throws Exception {

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