BuildTypesDependencyAnalyzer implements DependenciesAnalyzer<BuildDependenciesResult> { public CollectProgress getProgress(String buildTypeId, Integer position) { return mavenBuildAnalyzer.getProgress(buildTypeId, position); } BuildTypesDependencyAnalyzer(MavenBuildTypeDependenciesAnalyzer mavenBuildAnalyzer,
                                        BuildTypeDependenciesDecorator dependenciesDecorator,
                                        BuildPlanAnalyzer buildPlanAnalyzer,
                                        BuildTypeDependenciesExtractor buildTypeDependenciesExtractor,
                                        DependenciesDao dependenciesDao); BuildDependenciesResult getBuildDependencies(SBuildType buildType); BuildDependenciesResult getBuildDependencies(SBuildType buildType, boolean checkForNewerRevision); BuildDependenciesResult analyzeDependencies(SBuildType buildType); BuildDependenciesResult forceAnalyzeDependencies(SBuildType buildType); CollectProgress getProgress(String buildTypeId, Integer position);  }
@Test public void testGetProgress_Delegate() throws Exception { when(mavenBuildAnalyzer.getProgress("bt2", 0)).thenReturn(new CollectProgress("bt2")); assertThat(analyzer.getProgress("bt2", 0).getBuildTypeId(), is("bt2")); }