### Question:
PageCompareDataImpl implements PageCompareData { @Override public String getPath() { return resource.getPath(); } PageCompareDataImpl(Resource resource, String versionName); @Override Resource getResource(); @Override String getVersion(); @Override Date getVersionDate(); @Override String getPath(); @Override List<VersionSelection> getVersions(); @Override List<PageCompareDataLine> getLines();  }### Answer:
@Test public void getPath() throws RepositoryException { final String path = "/my/path"; final Resource resource = mockResource(path, "latest", new Date()); final PageCompareData pageCompareData = new PageCompareDataImpl(resource, "latest"); assertThat(pageCompareData.getPath(), is(path)); }