// Path: src/test/java/de/bayern/gdi/utils/SceneConstants.java
// public static final String ACTIVATE_FURTHER_PROCESSING =
//     "#chkChain";
// 
// Path: src/test/java/de/bayern/gdi/utils/SceneConstants.java
// public static final String ADD_PROCESSING_STEP =
//     "#addChainItem";
// 
// Path: src/test/java/de/bayern/gdi/utils/SceneConstants.java
// public static final String NO_FORMAT_CHOSEN =
//     "gui.process.no.format";
// 
// Path: src/test/java/de/bayern/gdi/utils/SceneConstants.java
// public static final String SERVICE_SELECTION =
//     "#serviceSelectionBt";


import static net.jadler.Jadler.closeJadler;
import static net.jadler.Jadler.initJadler;
import static net.jadler.Jadler.onRequest;
import static net.jadler.Jadler.port;
import static org.apache.commons.httpclient.HttpStatus.SC_OK;
import static org.hamcrest.Matchers.isOneOf;
import static org.junit.Assert.assertFalse;
import org.apache.commons.io.IOUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.nio.charset.Charset;
import static de.bayern.gdi.utils.SceneConstants.ACTIVATE_FURTHER_PROCESSING;
import static de.bayern.gdi.utils.SceneConstants.ADD_PROCESSING_STEP;
import static de.bayern.gdi.utils.SceneConstants.NO_FORMAT_CHOSEN;
import static de.bayern.gdi.utils.SceneConstants.SERVICE_SELECTION;
                .withStatus(SC_OK)
                .withBody(body)
                .withEncoding(Charset.forName("UTF-8"))
                .withContentType("application/xml; charset=UTF-8");
    }

    private String getCapabilitiesUrl(String queryPath, int port) {
        StringBuilder sb = new StringBuilder();
        sb.append("http://localhost:");
        sb.append(port);
        sb.append(queryPath);
        LOG.debug("GetCapabilities-URL: " + sb.toString());
        return sb.toString();
    }

    /**
     * Start jadler webserver.
     */
    @Before
    public void startJadler() {
        LOG.debug("Start jadler ...");
        initJadler();
    }

    /**
     * Stop jadler webserver.
     */
    @After
    public void stopJadler() {
        LOG.debug("Stop jadler ...");
// Path: src/test/java/de/bayern/gdi/utils/SceneConstants.java
// public static final String ACTIVATE_FURTHER_PROCESSING =
//     "#chkChain";
// 
// Path: src/test/java/de/bayern/gdi/utils/SceneConstants.java
// public static final String ADD_PROCESSING_STEP =
//     "#addChainItem";
// 
// Path: src/test/java/de/bayern/gdi/utils/SceneConstants.java
// public static final String NO_FORMAT_CHOSEN =
//     "gui.process.no.format";
// 
// Path: src/test/java/de/bayern/gdi/utils/SceneConstants.java
// public static final String SERVICE_SELECTION =
//     "#serviceSelectionBt";


// Path: src/test/java/de/bayern/gdi/Issue86IT.java
import static net.jadler.Jadler.closeJadler;
import static net.jadler.Jadler.initJadler;
import static net.jadler.Jadler.onRequest;
import static net.jadler.Jadler.port;
import static org.apache.commons.httpclient.HttpStatus.SC_OK;
import static org.hamcrest.Matchers.isOneOf;
import static org.junit.Assert.assertFalse;
import org.apache.commons.io.IOUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.nio.charset.Charset;
import static de.bayern.gdi.utils.SceneConstants.ACTIVATE_FURTHER_PROCESSING;
import static de.bayern.gdi.utils.SceneConstants.ADD_PROCESSING_STEP;
import static de.bayern.gdi.utils.SceneConstants.NO_FORMAT_CHOSEN;
import static de.bayern.gdi.utils.SceneConstants.SERVICE_SELECTION;

                .withStatus(SC_OK)
                .withBody(body)
                .withEncoding(Charset.forName("UTF-8"))
                .withContentType("application/xml; charset=UTF-8");
    }

    private String getCapabilitiesUrl(String queryPath, int port) {
        StringBuilder sb = new StringBuilder();
        sb.append("http://localhost:");
        sb.append(port);
        sb.append(queryPath);
        LOG.debug("GetCapabilities-URL: " + sb.toString());
        return sb.toString();
    }

    /**
     * Start jadler webserver.
     */
    @Before
    public void startJadler() {
        LOG.debug("Start jadler ...");
        initJadler();
    }

    /**
     * Stop jadler webserver.
     */
    @After
    public void stopJadler() {
        LOG.debug("Stop jadler ...");
        closeJadler();