@Test
public void changeGitRepositoryDirTest() throws Exception {

    wfRepo.setGitRepositoryDir(WORK_DIR + "/wf-source2");
    String oldSourceDir = wfRepo.getSourceDirs().get(0);
    List<String> sourceDirs = new ArrayList<String>(1);
    sourceDirs.add(0, WORK_DIR + "/wf-source2");
    wfRepo.setSourceDirs(sourceDirs);
    LockSupport.parkNanos(1000000000 + CHECK_INTERVAL_M_SEC * 1000000); // wait for workflow refresh
    change2BranchesTest(); // should run, because working classes are not overwritten (with empty configuration) by copper
}