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

        // Makes L invisible to bundles outside the set of allowed duplicates
        felix.allowDuplicateBundles(Set.of(bundleL));
        Bundle invisibleToAllowedDuplicates = startBundle(felix, "cert-l1-dup.jar");

        List<Bundle> visibleToAllowedDuplicates = felix.getBundles(bundleL);
        assertEquals(2, visibleToAllowedDuplicates.size());
        assertSame(bundleL, visibleToAllowedDuplicates.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