@Test
    void testParseEnum() {
        DefLine l = new DefLine("idtype enum { us_east, US_WEST, EMEA } default=EMEA");

        assertEquals("idtype", l.getName());
        assertEquals("EMEA", l.getDefault().getValue());
        assertEquals("EMEA", l.getDefault().getStringRepresentation());
        assertEquals("enum", l.getType().getName());
        assertEquals("us_east", l.getType().getEnumArray()[0]);
        assertEquals("US_WEST", l.getType().getEnumArray()[1]);
        assertEquals("EMEA", l.getType().getEnumArray()[2]);
    }
Tests parsing of a single line of a .def file

@author bratseth
@author gjoranv
configgen/src/test/java/com/yahoo/config/codegen/DefLineParsingTest.java