@Test
public void generatedConfigHasCorrectStrings() throws Exception {

    // we use the commit 4b218e6 instead of origin/plain, because the number of definitions changes fast
    this.setRevisionTo("4b218e6");
    CopybaraGenerator copybaraGenerator = new CopybaraGenerator();
    String config = copybaraGenerator.generateCopybaraConfigFile();
    assertEquals("urlOrigin = \"https://github.com/OpenTOSCA/tosca-definitions-internal.git\"\n" +
        "urlDestination = \"file:///tmp/copybara/tosca-definitions-public\"\n" +
        "core.workflow(\n" +
        "    name = \"default\",\n" +
        "    origin = git.origin(\n" +
        "        url = urlOrigin,\n" +
        "        ref = \"master\",\n" +
        "    ),\n" +
        "    destination = git.destination(\n" +
        "        url = urlDestination,\n" +
        "        fetch = \"master\",\n" +
        "        push = \"master\",\n" +
        "    ),\n" +
        "    authoring = authoring.pass_thru(\"OpenTOSCA Bot <opentosca@iaas.uni-stuttgart.de>\"),\n" +
        "    origin_files = glob([\"README.md\", \"LICENSE\", \"artifacttemplates/http%3A%2F%2Fplain.winery.opentosca.org%2Fartifacttemplates/ArtifactTemplateWithFilesAndSources-ArtifactTypeWithoutProperties/**\",\n" +
        "        \"artifacttemplates/http%3A%2F%2Fplain.winery.opentosca.org%2Fartifacttemplates/ArtifactTemplateWithoutAnyFiles-ArtifactTypeWithoutProperties/**\"]),\n" +
        "    destination_files = glob([\"**\"], exclude = [\"README_INTERNAL.md\"]),\n" +
        ")", config);
}