@Test
    void testIllegalCharacterInName() {
        assertLineFails("a-b int",
                "'a-b' contains an unexpected character");
    }
Unit tests for DefParser.

@author hmusum
@author gjoranv
configgen/src/test/java/com/yahoo/config/codegen/DefParserTest.java