@Test
public void testInfoToPath() throws Exception {

    assertEquals(PATH_BUNDLES + "/org/jahia/modules/article/2.0.0/article-2.0.0.jar",
            getJcrPath(new PersistentBundle("org.jahia.modules", "article", "2.0.0")));
    assertEquals(
            PATH_BUNDLES
                    + "/org/jahia/modules/advanced-visibility/2.0.1-SNAPSHOT/advanced-visibility-2.0.1-SNAPSHOT.jar",
            getJcrPath(new PersistentBundle("org.jahia.modules", "advanced-visibility", "2.0.1-SNAPSHOT")));
    assertEquals(PATH_BUNDLES + "/info/shyrkov/modules/myTest-module/1.0/myTest-module-1.0.jar",
            getJcrPath(new PersistentBundle("info.shyrkov.modules", "myTest-module", "1.0")));
    assertEquals(PATH_BUNDLES + "/myTest-module/2.1/myTest-module-2.1.jar",
            getJcrPath(new PersistentBundle(null, "myTest-module", "2.1")));
}