RepositoryManager extends SCM { @Exported public List<BuildRepository> getRepositories() { return repos; } @DataBoundConstructor  RepositoryManager(List<BuildRepository> repositories); SCMRevisionState calcRevisionsFromBuild(AbstractBuild<?, ?> build,
			Launcher launcher, TaskListener listener); boolean checkout(AbstractBuild<?, ?> build, Launcher launcher,
			FilePath workspace, BuildListener listener, File changelogFile); @Exported List<BuildRepository> getRepositories(); ChangeLogParser createChangeLogParser(); boolean requiresWorkspaceForPolling();  }
@Test public void defaultRepos() { RepositoryManager manager = new RepositoryManager(null); assertNotNull(manager.getRepositories()); assertTrue(manager.getRepositories().isEmpty()); }
@Test public void singleRepo() { BuildRepository repo = new BuildRepository("git: "master", "."); RepositoryManager manager = new RepositoryManager( Collections.singletonList(repo)); assertNotNull(manager.getRepositories()); assertFalse(manager.getRepositories().isEmpty()); assertEquals(repo, manager.getRepositories().get(0)); }