@Test
public void testInitializeRepositoryList() throws IOException {

    ArrayList<RepositoryProperties> repositoryList = new ArrayList<>();
    repositoryList.add(new RepositoryProperties("mainTestRepository",
        "https://github.com/winery/mulit-repo-test"));
    MultiRepositoryManager multiRepositoryManager = new MultiRepositoryManager();
    multiRepositoryManager.initializeRepositoryListForMultiRepositoryAndReconfigureFactory(repositoryList);
    assertTrue(Paths.get(Environments.getInstance().getRepositoryConfig().getRepositoryRoot(),
        Filename.FILENAME_JSON_REPOSITORIES).toFile().exists());
    ObjectMapper objectMapper = new ObjectMapper();
    ObjectReader reader = objectMapper.readerFor(new TypeReference<List<RepositoryProperties>>() {
    });
    repositoryList = reader.readValue(Paths.get(Environments.getInstance().getRepositoryConfig().getRepositoryRoot(),
        Filename.FILENAME_JSON_REPOSITORIES).toFile());
    assertEquals(1, repositoryList.size());
    assertEquals("https://github.com/winery/mulit-repo-test", repositoryList.get(0).getUrl());
    assertEquals("master", repositoryList.get(0).getBranch());
    assertEquals("mainTestRepository", repositoryList.get(0).getName());
}