@Test
    void testNames() {
        assertLegalName("aB");
        assertIllegalName("a.");
        assertLegalName("_a_b");
        assertLegalName("a_b");
        assertLegalName("a/b");
        assertLegalName("/a/b");
        assertLegalName("/a/b/");
        assertIllegalName("");
    }
tests creating invalid names

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