private void checkInFiles(String... files) throws Exception {
   for (String fileName : files) {
     File file = new File(workingFolder, fileName);
     FileUtils.writeStringToFile(file, "bla");
     hgMaterial.add(workingFolder, outputStreamConsumer, file);
   }
   hgMaterial.commit(workingFolder, outputStreamConsumer, "comment ", "user");
   hgMaterial.push(workingFolder, outputStreamConsumer);
 }
 @Before
 public void setup() throws Exception {
   dbHelper.onSetUp();
   configHelper.onSetUp();
   configHelper.usingCruiseConfigDao(goConfigDao).initializeConfigFile();
   hgTestRepo = new HgTestRepo("hgTestRepo1");
   hgMaterial = MaterialsMother.hgMaterial(hgTestRepo.projectRepositoryUrl());
   hgMaterial.setFilter(new Filter(new IgnoredFiles("helper/**/*.*")));
   workingFolder = TestFileUtil.createTempFolder("workingFolder");
   outputStreamConsumer = inMemoryConsumer();
   mingleConfig =
       configHelper.addPipeline(
           "cruise", STAGE_NAME, this.hgMaterial.config(), "unit", "functional");
 }