@Test
  public void testFindScriptResources() throws Exception {

    // Prepare our resources
    TestApplication app = new TestApplication();
    String targetId1 = this.mngr.createTarget("id: tid1\nhandler: h");
    String targetId2 = this.mngr.createTarget("id: tid2\nhandler: h");

    this.mngr.associateTargetWith(targetId1, app, null);
    this.mngr.associateTargetWith(targetId2, app, null);

    File dir1 =
        new File(
            this.configurationMngr.getWorkingDirectory(),
            ConfigurationUtils.TARGETS + "/" + targetId1);
    File dir2 =
        new File(
            this.configurationMngr.getWorkingDirectory(),
            ConfigurationUtils.TARGETS + "/" + targetId2);
    Utils.createDirectory(dir1);
    Utils.createDirectory(dir2);
    Utils.writeStringInto(
        "#!/bin/bash\necho Bonjour le monde cruel > toto.txt", new File(dir1, "target-script.sh"));
    Utils.writeStringInto("#!/bin/bash\necho touch toto.txt", new File(dir2, "target-script.py"));

    Assert.assertEquals(1, this.mngr.findScriptResources(targetId1).size());
    Assert.assertEquals(1, this.mngr.findScriptResources(app, app.getMySql()).size());
  }