private void assertLegalFieldName(String name) {
        new QueryProfile(name).set(name, "value", (QueryProfileRegistry)null);
        new FieldDescription(name,FieldType.stringType);
    }
tests creating invalid names

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