@Test
public void testCreatePuppetScript() throws Exception {

    Software software = Software.builder()
        .file("http://bin.axemblr.com/test.tar.gz", "/opt/test.tar.gz")
        .file("http://google.com", "/opt/google.html")
        .createSoftware();
    Pool pool = mock(Pool.class);
    when(pool.getSoftware()).thenReturn(software);
    PuppetActivity activity = new DownloadFiles();
    String content = activity.createPuppetScript(pool, null);
    assertThat(content)
        .contains("download_file {\"/opt/test.tar.gz\":\n" +
            "  uri => \"http://bin.axemblr.com/test.tar.gz\"\n" +
            "}")
        .contains("download_file {\"/opt/google.html\":\n" +
            "  uri => \"http://google.com\"\n" +
            "}");
    assertThat(activity.createAdditionalFiles(pool, null)).isEmpty();
}