package org.jmeterplugins.protocol.http.control;

import org.junit.Test;

import java.io.File;

public class STSInstallerTest {
    @Test
    public void name() throws Exception {
        File self = new File(STSInstaller.class.getProtectionDomain().getCodeSource().getLocation().getFile());
        String home = self.getParentFile().getParentFile().getParent();
        File dest = new File(home + File.separator + "bin");
        dest.mkdirs();

        STSInstaller.main(new String[0]);
    }
}
@@ -43,16 +43,56 @@
 ntrol;%0A%0A
+import org.apache.commons.io.FileUtils;%0A
 import o
@@ -523,16 +523,58 @@
 ing%5B0%5D);
+%0A%0A        FileUtils.deleteDirectory(dest);
 %0A    %7D%0A%7D

Make test cleanup after itself