@Test
    void testSpecNamespaceLookup() {
        assertEquals(component1, registry.getComponent(specInNamespace(namespace1)));

        // Version for namespace must match the specification exactly, so do not return version '1' when an
        // empty version is asked for.
        assertEquals(component2, registry.getComponent(specInNamespace(namespace2)));
        assertEquals(component21, registry.getComponent(specInNamespace(namespace21)));
    }
Tests that ComponentRegistry handles namespaces correctly.

@author Tony Vaagenes
container-core/src/test/java/com/yahoo/component/provider/test/ComponentRegistryTestCase.java