### Question:
PageCompareDataImpl implements PageCompareData { @Override public String getVersion() { return versionName; } 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 getVersion() throws RepositoryException { final String versionName = "latest"; final Resource resource = mockResource("/my/path", versionName, new Date()); final PageCompareData pageCompareData = new PageCompareDataImpl(resource, versionName); assertThat(pageCompareData.getVersion(), is(versionName)); }