@Test
public void testFindAndroidStudioLocalMavenRepoPaths() {

  File rootDir = new File(PathManager.getHomePath()).getParentFile().getParentFile();
  List<File> expectedRepo = Arrays.asList(new File(rootDir, "out/repo"),
                                          new File(rootDir, "out/studio/repo"),
                                          new File(rootDir, "prebuilts/tools/common/m2/repository"));
  expectedRepo = expectedRepo.stream().filter(File::isDirectory).collect(Collectors.toList());
  // Invoke the method to test.
  List<File> paths = inst.doFindAndroidStudioLocalMavenRepoPaths();
  assertThat(paths).hasSize(expectedRepo.size());
  assertThat(paths).containsExactlyElementsIn(expectedRepo);
}