// Path: src/main/java/spark/Spark.java
// public static void after(String path, Filter filter) {
//     getInstance().after(path, filter);
// }
// 
// 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 post(String path, Route route) {
//     getInstance().post(path, route);
// }


import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import spark.util.SparkTestUtil;
import static spark.Spark.after;
import static spark.Spark.before;
import static spark.Spark.post;
package spark;




public class BodyAvailabilityTest {

    private static final Logger LOGGER = LoggerFactory.getLogger(BodyAvailabilityTest.class);

    private static final String BODY_CONTENT = "the body content";
    
    private static SparkTestUtil testUtil;

    private final int HTTP_OK = 200;
    
    private static String beforeBody = null;
    private static String routeBody = null;
    private static String afterBody = null;

    @AfterClass
    public static void tearDown() {
        Spark.stop();

        beforeBody = null;
        routeBody = null;
        afterBody = null;
    }

    @BeforeClass
    public static void setup() {
        LOGGER.debug("setup()");

        testUtil = new SparkTestUtil(4567);

        beforeBody = null;
        routeBody = null;
        afterBody = null;

// Path: src/main/java/spark/Spark.java
// public static void after(String path, Filter filter) {
//     getInstance().after(path, filter);
// }
// 
// 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 post(String path, Route route) {
//     getInstance().post(path, route);
// }


// Path: src/test/java/spark/BodyAvailabilityTest.java
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import spark.util.SparkTestUtil;
import static spark.Spark.after;
import static spark.Spark.before;
import static spark.Spark.post;

package spark;




public class BodyAvailabilityTest {

    private static final Logger LOGGER = LoggerFactory.getLogger(BodyAvailabilityTest.class);

    private static final String BODY_CONTENT = "the body content";
    
    private static SparkTestUtil testUtil;

    private final int HTTP_OK = 200;
    
    private static String beforeBody = null;
    private static String routeBody = null;
    private static String afterBody = null;

    @AfterClass
    public static void tearDown() {
        Spark.stop();

        beforeBody = null;
        routeBody = null;
        afterBody = null;
    }

    @BeforeClass
    public static void setup() {
        LOGGER.debug("setup()");

        testUtil = new SparkTestUtil(4567);

        beforeBody = null;
        routeBody = null;
        afterBody = null;

        before("/hello", (req, res) -> {