BundleInfo implements Serializable { public String getKey() { return bucketInfo.getKey() + '/' + version; } BundleInfo(String symbolicName, String version);  BundleInfo(String groupId, String symbolicName, String version);  BundleInfo(BundleBucketInfo bucketInfo, String version); static BundleInfo fromBundle(Bundle bundle); static BundleInfo fromKey(String key); static BundleInfo fromModuleInfo(String moduleId, String moduleVersion); String getGroupId(); String getKey(); String getSymbolicName(); String getVersion(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testKey() throws Exception { assertEquals("org.jahia.modules/article/2.0.0", new BundleInfo("org.jahia.modules", "article", "2.0.0").getKey()); assertEquals("org.jahia.modules/advanced-visibility/2.0.1-SNAPSHOT", new BundleInfo("org.jahia.modules", "advanced-visibility", "2.0.1-SNAPSHOT").getKey()); assertEquals("myTest-module/1.0", new BundleInfo("myTest-module", "1.0").getKey()); }