static DefParser createParser(String def) {
        return new DefParser("test", new StringReader(def));
    }
Unit tests for DefParser.

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