@Override
public void before() {
File outputDir = new File(getClass().getProtectionDomain().getCodeSource().getLocation().getPath() + File.separatorChar + "outputFolder");
File pluginsDir = new File(getClass().getProtectionDomain().getCodeSource().getLocation().getPath() + File.separatorChar + "plugins");
server = new CrawljaxServer(new CrawljaxServerConfigurationBuilder()
.setPort(0).setOutputDir(outputDir).setPluginDir(pluginsDir));
executor = Executors.newSingleThreadExecutor();
serverResult = executor.submit(server);
server.waitUntilRunning(10000);
}