@Test
public void testReadDefinition() throws IOException {
DefinitionLoadingOptions options = new DefinitionLoadingOptions();
new JCommander(options, "--directory", "src/test/resources");
DefinitionLoadingModule module = new DefinitionLoadingModule();
File defDir = module.directory(options, new File("."), null, System.getenv());
assertEquals(new File("src/test/resources").getCanonicalFile(), defDir.getCanonicalFile());
File kompiledDir = module.definition(defDir, null);
assertEquals(new File("src/test/resources/test-kompiled").getCanonicalFile(), kompiledDir.getCanonicalFile());
assertTrue(kompiledDir.exists());
assertTrue(kompiledDir.isDirectory());
}
}