Document doc = new Document(d);
IModule module = AbstractModule.createModuleFromDoc("", null, doc, nature, true);
ICompletionState emptyCompletionState = CompletionStateFactory.getEmptyCompletionState("bar", nature,
new CompletionCache());
Definition[] defs = (Definition[]) module.findDefinition(emptyCompletionState, 6, 17, nature);
assertEquals(1, defs.length);
assertEquals(6, defs[0].line);
assertEquals(17, defs[0].col);
assertSame(module, defs[0].module);