private void assertLegalName(String name) {
        new QueryProfile(name);
        new QueryProfileType(name);
    }
tests creating invalid names

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