@Test
public void linuxOrWindowsLayout() throws Exception {

  Path testRoot = Paths.get(AndroidTestBase.getTestDataPath(), "licenseLocator");
  Path ideHome = testRoot.resolve("linux");
  LicensesLocator locator = new LicensesLocator(ideHome, false);
  List<String> expectedPaths = Arrays.asList(
    "LICENSE.txt",
    "NOTICE.txt",
    "license/ant_license.txt",
    "plugins/android/lib/licenses/antlr4-runtime-4.5.3.jar-NOTICE",
    "plugins/android/lib/licenses/asm-5.0.3-NOTICE"
  );
  assertThat(relativize(locator.getLicenseFiles(), ideHome)).containsAllIn(expectedPaths);
}