private TernDoc createDocForCompletionModuleCheckFiles() {
    TernDoc doc = new TernDoc();

    TernAngularCompletionsQuery query = new TernAngularCompletionsQuery(AngularType.module);
    query.setExpression("");

    doc.setQuery(query);
    return doc;
  }
  private TernDoc createDocForCompletionModuleStartsWith() {
    String name = "myfile.js";
    String text = "angular.module('phonecatApp');" + "angular.module('phonecatAnimations');";

    TernDoc doc = new TernDoc();
    doc.addFile(name, text, null, null);

    TernAngularCompletionsQuery query = new TernAngularCompletionsQuery(AngularType.module);
    query.setExpression("phonecatAn");

    doc.setQuery(query);
    return doc;
  }