private void setUpTemplate() {
    template = new Process();
    template.setTitel("template");
    template.setDocket(new Docket());
    template.setDocketId(0);
    template.setId(666);
    template.setMetadatenKonfigurationID(0);
    template.setIstTemplate(true);

    Project project = new Project();
    project.setTitel("Project");
    template.setProjekt(project);
    project.setFileFormatInternal("Mets");
    project.setFileFormatDmsExport("Mets");
    userList = new ArrayList<>();
    User user = new User();
    user.setLogin("login");
    user.setPasswort("password");
    userList.add(user);

    List<Step> stepList = new ArrayList<>();
    Step step = new Step();
    step.setTitel("titel");
    step.setBenutzer(userList);
    step.setReihenfolge(1);
    stepList.add(step);

    secondStep = new Step();
    secondStep.setTitel("titel");
    secondStep.setReihenfolge(2);
    stepList.add(secondStep);
    template.setSchritte(stepList);
  }
 private void setUpRuleset() throws IOException, URISyntaxException {
   Path rulesetFolder = folder.newFolder("rulesets").toPath();
   Files.createDirectories(rulesetFolder);
   datafolder = System.getenv("junitdata");
   if (datafolder == null) {
     datafolder = "/opt/digiverso/junit/data/";
   }
   Path rulesetTemplate = Paths.get(datafolder + RULESET_NAME);
   Path rulesetFile = Paths.get(rulesetFolder.toString(), RULESET_NAME);
   Files.copy(rulesetTemplate, rulesetFile, NIOFileUtils.STANDARD_COPY_OPTIONS);
   Ruleset ruleset = new Ruleset();
   ruleset.setId(11111);
   ruleset.setOrderMetadataByRuleset(true);
   ruleset.setTitel(RULESET_NAME);
   ruleset.setDatei(RULESET_NAME);
   ConfigurationHelper.CONFIG_FILE_NAME = datafolder + "goobi_config.properties";
   ConfigurationHelper.getInstance().setParameter("KonfigurationVerzeichnis", datafolder);
   ConfigurationHelper.getInstance().setParameter("pluginFolder", datafolder);
   ConfigurationHelper.getInstance()
       .setParameter(
           "RegelsaetzeVerzeichnis",
           rulesetFolder.toString() + FileSystems.getDefault().getSeparator());
   template.setRegelsatz(ruleset);
 }