@Test
public void givesPathWithinRoot() throws Exception {

  File bundleFile = TestUtils.getTestDataFile(APP_BUNDLE);
  try (ZipFile zipFile = new ZipFile(bundleFile)) {
    ZipEntry entry = zipFile.getEntry("base/manifest/AndroidManifest.xml");
    ZipFileData data = new ZipFileData(zipFile, entry);
    // This (Object) cast is required to disambiguate Path assertions,
    // see https://github.com/google/truth/issues/285
    assertThat((Object) data.getPathWithinRoot())
        .isEqualTo(Paths.get("base/manifest/AndroidManifest.xml"));
  }
}