//
HgRepository repo = new HgLookup().detect(repoLoc);
final HgRepoConfig cfg = repo.getConfiguration();
assertNotNull(cfg.getPaths());
assertNotNull(cfg.getExtensions());
final Section dne = cfg.getSection("does-not-exist");
assertNotNull(dne);
assertFalse(dne.exists());
assertEquals(username, cfg.getSection("ui").getString("username", null));
final PathsSection p = cfg.getPaths();
assertTrue(p.getPathSymbolicNames().contains(path1_key));
assertEquals(path1_value, p.getString(path1_key, null));
assertTrue(p.hasDefault());