DirectiveBasedJavascriptGroup jg = new DirectiveBasedJavascriptGroup("testDummy", file.getParentFile(),
file.getName(), ImmutableList.<DirectiveType<?>> of(DirectiveTypes.includeType),
EnumSet.of(JavascriptGeneratorMode.TESTING));
DirectiveParser dp = new DirectiveParser(jg, jg.getStartFile());
try {
dp.parseFile();
fail("Should have failed processing a non-existing file");
} catch (IOException expected) {
assertTrue("Add File function failed because of an unexpected error message",
expected.getMessage().startsWith("File did not exist or was not a valid, acceptable file"));
}