@Test
public void givesPathWithinRoot() throws Exception {

  File file = TestUtils.getTestDataFile(PATH);
  Path pathWithinRoot = Paths.get("hello/world/foobar.txt");
  SystemFileData systemFileData = new SystemFileData(file, pathWithinRoot);
  // This (Object) cast is required to disambiguate Path assertions,
  // see https://github.com/google/truth/issues/285
  assertThat((Object) systemFileData.getPathWithinRoot()).isEqualTo(pathWithinRoot);
}