@Test
    void package_alters_def_md5() {
        DefParser parser = createParser("a string\n");
        CNode root = parser.getTree();

        parser = createParser("package=" + PACKAGE + "\na string\n");
        CNode rootWithPackage = parser.getTree();

        assertNotEquals(root.defMd5, rootWithPackage.defMd5);
    }
Tests setting explicit java package in the def file.

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