### Question:
PathListReportExecutor implements ReportExecutor { @Override public ResultsPage getResults() throws ReportException { final List<String> paths = extractPaths(); List<String> sublistPaths = paths.subList(getFrom(currentPage), getTo(paths.size())); return new ResultsPage(getResources(sublistPaths), config.getPageSize(), currentPage); }  @Override String getDetails(); @Override String getParameters(); @Override ResultsPage getAllResults(); @Override ResultsPage getResults(); @Override void setConfiguration(final Resource config); @Override void setPage(final int page);  }### Answer:
@Test public void testGetResultsAllItemsInFirstPage() throws ReportException { ResultsTestObject resultsTestObject = new ResultsTestObject(50, 0, TEST_PATHS, TEST_PATHS).configure(); assertEquals(resultsTestObject.getResultsPage(), resultsTestObject.getReportExecutor().getResults()); }
@Test public void testGetResultsFirstPageWhenMoreAvailable() throws ReportException { ResultsTestObject resultsTestObject = new ResultsTestObject(2, 0, TEST_PATHS, TEST_PATHS.subList(0, 2)).configure(); assertEquals(resultsTestObject.getResultsPage(), resultsTestObject.getReportExecutor().getResults()); }
@Test public void testGetResultsLastPageWhenMoreAvailable() throws ReportException { ResultsTestObject resultsTestObject = new ResultsTestObject(2, 2, TEST_PATHS, TEST_PATHS.subList(4, 5)).configure(); assertEquals(resultsTestObject.getResultsPage(), resultsTestObject.getReportExecutor().getResults()); }
@Test public void testGetResultsMiddlePageWhenMoreAvailable() throws ReportException { ResultsTestObject resultsTestObject = new ResultsTestObject(2, 1, TEST_PATHS, TEST_PATHS.subList(2, 4)).configure(); assertEquals(resultsTestObject.getResultsPage(), resultsTestObject.getReportExecutor().getResults()); }