### Question:
FileFeedbackWrapper { public List<LineExecution> getPerformanceHistory(int line) { return collectFeedbackForAllVersions(line).stream() .flatMap(vf -> filterFeedbackList(vf.getFileFeedback().getLines() .get(vf.getVersionWithLineNumber().getLineNumber().getLineNumberBeforeChange()) .getPerformance() .getRequestProfileHistory(), vf.getVersionWithLineNumber().getVersion(), p -> p.getProfileStartTimestamp()) ).sorted((a, b) -> a.getProfileStartTimestamp().compareTo(b.getProfileStartTimestamp())) .collect(Collectors.toList()); } FileFeedbackWrapper(List<String> sortedVersions,
                               Map<String, FileFeedback> versionedFeedback,
                               Map<String, Map<Integer, TranslatedLineNumber>> versionTranslations,
                               Map<Integer, TranslatedLineNumber> localTranslations);  FileFeedbackWrapper(Map<String, FeedbackFilter> filters,
                               List<String> sortedVersions,
                               Map<String, FileFeedback> versionedFeedback,
                               Map<String, Map<Integer, TranslatedLineNumber>> versionTranslations,
                               Map<Integer, TranslatedLineNumber> localTranslations); Set<Integer> getLineNumbersForLatestAvailableVersion(); Optional<VersionWithLineNumber> getNthAvailableVersion(int line, int n); Optional<VersionWithLineNumber> getLatestAvailableVersion(int line); List<RegressionItem> getRegressions(); boolean containsFeedbackForLine(int line); List<LineException> getExceptions(int line); List<LogRecord> getLogging(int line); Optional<Double> getGlobalAverageForLine(int line); Integer getExecutionCount(int line); List<LineExecution> getPerformanceHistory(int line); Optional<Boolean> isLineStale(int line); List<Request> getFirstRequestsForLine(int line); List<VersionRecord> getVersions(int line); List<String> getEndpointNames(); List<String> getRequestParameterNames(String urlRule);  }### Answer:
@Test public void performanceRequestHistoryContainsHistoryFromAllVersions() { List<LineExecution> performanceHistory = fileFeedbackWrapper.getPerformanceHistory(4); Assert.assertEquals(4, performanceHistory.size()); Assert.assertEquals(LocalDateTime.of(1997, 4, 10, 11, 0), performanceHistory.get(0).getProfileStartTimestamp()); Assert.assertEquals(500.0, performanceHistory.get(0).getSampleTime(), 0.0); Assert.assertEquals(LocalDateTime.of(1997, 4, 10, 11, 30), performanceHistory.get(1).getProfileStartTimestamp()); Assert.assertEquals(700.0, performanceHistory.get(1).getSampleTime(), 0.0); Assert.assertEquals(LocalDateTime.of(1997, 4, 10, 12, 0), performanceHistory.get(2).getProfileStartTimestamp()); Assert.assertEquals(200.0, performanceHistory.get(2).getSampleTime(), 0.0); Assert.assertEquals(LocalDateTime.of(1997, 4, 10, 12, 30), performanceHistory.get(3).getProfileStartTimestamp()); Assert.assertEquals(400.0, performanceHistory.get(3).getSampleTime(), 0.0); }