// Path: src/main/java/spark/Spark.java
// public static void awaitInitialization() {
//     getInstance().awaitInitialization();
// }
// 
// Path: src/main/java/spark/Spark.java
// public static void before(String path, Filter filter) {
//     getInstance().before(path, filter);
// }
// 
// Path: src/main/java/spark/Spark.java
// public static void stop() {
//     getInstance().stop();
// }


import java.io.IOException;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import spark.util.SparkTestUtil;
import spark.util.SparkTestUtil.UrlResponse;
import static spark.Spark.awaitInitialization;
import static spark.Spark.before;
import static spark.Spark.stop;
package spark;





public class FilterTest {
    static SparkTestUtil testUtil;

    @AfterClass
    public static void tearDown() {
        stop();
    }

    @BeforeClass
    public static void setup() throws IOException {
        testUtil = new SparkTestUtil(4567);

        before("/justfilter", (q, a) -> System.out.println("Filter matched"));
// Path: src/main/java/spark/Spark.java
// public static void awaitInitialization() {
//     getInstance().awaitInitialization();
// }
// 
// Path: src/main/java/spark/Spark.java
// public static void before(String path, Filter filter) {
//     getInstance().before(path, filter);
// }
// 
// Path: src/main/java/spark/Spark.java
// public static void stop() {
//     getInstance().stop();
// }


// Path: src/test/java/spark/FilterTest.java
import java.io.IOException;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import spark.util.SparkTestUtil;
import spark.util.SparkTestUtil.UrlResponse;
import static spark.Spark.awaitInitialization;
import static spark.Spark.before;
import static spark.Spark.stop;

package spark;





public class FilterTest {
    static SparkTestUtil testUtil;

    @AfterClass
    public static void tearDown() {
        stop();
    }

    @BeforeClass
    public static void setup() throws IOException {
        testUtil = new SparkTestUtil(4567);

        before("/justfilter", (q, a) -> System.out.println("Filter matched"));
        awaitInitialization();