@Test
    void testComponentIdAsCompoundName() {
        String name = "a/b";
        assertEquals(CompoundName.from(name), new QueryProfileType(name).getComponentIdAsCompoundName());
    }
tests creating invalid names

@author bratseth
container-search/src/test/java/com/yahoo/search/query/profile/types/test/NameTestCase.java