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