public static final String SRC = "src/test/resources/for-parsing-and-compilation/";
@Test
public void check() throws Throwable {
GoloParser parser = new GoloOffsetParser(new FileInputStream(SRC + "doc.golo"));
ASTCompilationUnit compilationUnit = parser.CompilationUnit();
ModuleDocumentation doc = new ModuleDocumentation(compilationUnit);
assertThat(doc.moduleName(), is("Documented"));
assertThat(doc.moduleDocumentation(), containsString(" let foo = \"bar\""));
assertThat(doc.moduleDefLine(), is(1)); //Module doc is part of the module node