codeBlockMap.put(file2.getName(), file2);
builder.setCodeGraph(CodeGraphImpl.make().setCodeBlockMap(codeBlockMap));
JsonArray<AutocompleteProposal> proposals = checkProposals(
builder, new String[] {"foobar", "foobaz"}, "foo", false);
assertEquals(new PathUtil("/file1.js"),
TestUtils.findProposalByName(proposals, "foobar").getPath());
assertEquals(new PathUtil("/file2.js"),
TestUtils.findProposalByName(proposals, "foobaz").getPath());
checkProposals(builder, new String[] {"barbaz", "barfoo", "foobar", "foobaz"}, "", false);
// Check this proposals do not receive top-level items.