@Test
    public void allowed_duplicates_are_invisible_to_unrelated_bundles() throws  Exception {
        Bundle bundleL = startBundle(felix, "cert-l1.jar");
        Bundle bundleA = startBundle(felix, "cert-a.jar");

        // Makes L invisible to bundles outside the set of allowed duplicates
        felix.allowDuplicateBundles(Set.of(bundleL));

        List<Bundle> visibleBundles = felix.getBundles(bundleA);
        assertEquals(2, visibleBundles.size());
        assertTrue(isFrameworkBundle(visibleBundles.get(0)));
        assertSame(bundleA, visibleBundles.get(1));
    }
Note that the '-dup' bundles are necessary, because installing a bundle with the same location as an already
installed bundle is a NOP. From the OSGi spec: "Every bundle is uniquely identified by its location string."

@author gjoranv
jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/BundleCollisionHookIntegrationTest.java