@Test
    void testInnerComponentNotMixedWithTopLevelComponent() {
        assertNull(registry.getComponent(componentName));

        TestComponent topLevel = new TestComponent(new ComponentId(componentName));
        registry.register(topLevel.getId(), topLevel);
        assertEquals(topLevel, registry.getComponent(componentName));

        assertEquals(component1, registry.getComponent(specInNamespace(namespace1)));
        assertEquals(component1, registry.getComponent(idInNamespace(namespace1)));
    }
Tests that ComponentRegistry handles namespaces correctly.

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