sling test case SERVER side <p>I was writing sling unit test case for server side , where my test bundle is run by getting hit into the junit servlet , from the client side using the following piece of code. My test needs a running FTP server for the purpose , which i want to get embed into this function , by using @before and cleaning the dump by @after or any other best possible ways , how to do this with the runnable test class which invokes a junit servlet.</p> <pre><code>@RunWith(SlingRemoteTestRunner.class) public class FTPImporterTest extends SlingTestBase implements SlingRemoteTestParameters, SlingTestsCountChecker { /** * */ public static final String TEST_SELECTOR = "com.my.proj.FTPImporterTesting.FTPImporterServerTest"; public static final int TESTS_AT_THIS_PATH = 3; /** * */ public int getExpectedNumberOfTests() { return TESTS_AT_THIS_PATH; } public String getJunitServletUrl() { return getServerBaseUrl() + "/system/sling/junit"; } public String getTestClassesSelector() { return TEST_SELECTOR; } public String getTestMethodSelector() { return null; } public void checkNumberOfTests(int i) { Assert.assertEquals(TESTS_AT_THIS_PATH, i); } } </code></pre>