### Question:
ComparisonExecutor { synchronized List<ComparisonConfiguration> getComparisonConfigurationsForBaseBranch(String baseBranchName) { List<ComparisonConfiguration> comparisonConfigurationsForBaseBranch = new LinkedList<>(); List<ComparisonConfiguration> comparisonConfigurations = configurationRepository.getConfiguration() .getComparisonConfigurations(); String resolvedBaseBranchName = aliasResolver.resolveBranchAlias(baseBranchName); for (ComparisonConfiguration comparisonConfiguration : comparisonConfigurations) { String resolvedConfigurationBaseBranchName = aliasResolver.resolveBranchAlias(comparisonConfiguration.getBaseBranchName()); if (resolvedBaseBranchName.equals(resolvedConfigurationBaseBranchName) || resolvedBaseBranchName.matches(resolvedConfigurationBaseBranchName)) { comparisonConfigurationsForBaseBranch.add(new ComparisonConfiguration(comparisonConfiguration, resolvedBaseBranchName)); } } return comparisonConfigurationsForBaseBranch; } ComparisonExecutor(AliasResolver aliasResolver);   ComparisonExecutor(ThreadPoolExecutor executorService, AliasResolver aliasResolver); void scheduleAllConfiguredComparisonsForOneBuild(String baseBranchName, String baseBuildName); Future<BuildDiffInfo> scheduleComparison(String baseBranchName, String baseBuildName,
													String comparisonBranchName, String comparisonBuildName, String comparisonName); void executeAfterAllPendingComparisonsDone(Runnable task); boolean areAllComparisonCalculationsFinished();  }### Answer:
@Test void testGetComparisonConfigurationsForBaseBranch1() { List<ComparisonConfiguration> result = comparisonExecutor .getComparisonConfigurationsForBaseBranch(BRANCH_NAME_1); assertEquals(NUMBER_OF_COMPARISONS_FOR_BRANCH_1, result.size()); assertThat(result.get(0)).isEqualToComparingFieldByField(comparisonConfiguration1); assertThat(result.get(1)).isEqualToComparingFieldByField(comparisonConfiguration2); assertThat(result.get(2)).isEqualToComparingFieldByField(comparisonConfiguration3); assertThat(result.get(3)).isEqualToComparingFieldByField(comparisonConfiguration4); assertThat(result.get(4)).isEqualToComparingFieldByField(comparisonConfiguration5MatchedForBranch1); }
@Test void testGetComparisonConfigurationsForBaseBranch2() { List<ComparisonConfiguration> result = comparisonExecutor .getComparisonConfigurationsForBaseBranch(BRANCH_NAME_2); assertEquals(NUMBER_OF_COMPARISONS_FOR_BRANCH_2, result.size()); assertThat(result.get(0)).isEqualToComparingFieldByField(comparisonConfiguration5MatchedForBranch2); assertThat(result.get(1)).isEqualToComparingFieldByField(comparisonConfiguration6); }