public void testIncludeDirective() throws Exception {
getResourceFile("/testdata/javascript/includeDirective/testIncludeDirective.js");
getResourceFile("/testdata/javascript/includeDirective/testIncludeDirective1.js");
getResourceFile("/testdata/javascript/includeDirective/testIncludeDirective2.js");
getResourceFile("/testdata/javascript/includeDirective/nestedInclude/testIncludeDirective3.js");
DirectiveBasedJavascriptGroup jg = new DirectiveBasedJavascriptGroup("testDummy",
getResourceFile("/testdata/"), "javascript/includeDirective/testIncludeDirective.js",
ImmutableList.<DirectiveType<?>> of(DirectiveTypes.includeType, DirectiveTypes.ifType),
EnumSet.of(JavascriptGeneratorMode.TESTING));
DirectiveParser dp = new DirectiveParser(jg, jg.getStartFile());
dp.parseFile();
goldFileText(dp.generate(JavascriptGeneratorMode.TESTING), "_test.js");
goldFileText(dp.generate(JavascriptGeneratorMode.AUTOTESTING), "_auto.js");
}