// Path: src/test/java/org/iotlabs/dashboard/blueprints/TestBluePrint.java
// public class TestBluePrint extends AbstractBluePrint  {
// 
//     public TestBluePrint() {
//         super("test");
//     }
// 
//     @Override
//     public void register() {
//         get(getEndPoint("/"), (req, res)  -> "test");
//         get(getEndPoint("json"), (req, res)-> {
//             TestModel testModel = new TestModel();
//             testModel.id = 1;
//             testModel.user = "test";
//             return testModel;
//         }, new JsonTransformer());
//     }
// 
//     private static class TestModel {
//         @SerializedName("id")
//         private int id;
//         @SerializedName("user")
//         private String user;
//     }
// }


import org.iotlabs.dashboard.blueprints.TestBluePrint;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import spark.Spark;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import static org.junit.Assert.assertEquals;
package org.iotlabs.dashboard;




public class SparkProxyTest {

    @BeforeClass
    public static void beforeClass() {
        SparkProxy.getInstance().run();
// Path: src/test/java/org/iotlabs/dashboard/blueprints/TestBluePrint.java
// public class TestBluePrint extends AbstractBluePrint  {
// 
//     public TestBluePrint() {
//         super("test");
//     }
// 
//     @Override
//     public void register() {
//         get(getEndPoint("/"), (req, res)  -> "test");
//         get(getEndPoint("json"), (req, res)-> {
//             TestModel testModel = new TestModel();
//             testModel.id = 1;
//             testModel.user = "test";
//             return testModel;
//         }, new JsonTransformer());
//     }
// 
//     private static class TestModel {
//         @SerializedName("id")
//         private int id;
//         @SerializedName("user")
//         private String user;
//     }
// }


// Path: src/test/java/org/iotlabs/dashboard/SparkProxyTest.java
import org.iotlabs.dashboard.blueprints.TestBluePrint;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import spark.Spark;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import static org.junit.Assert.assertEquals;

package org.iotlabs.dashboard;




public class SparkProxyTest {

    @BeforeClass
    public static void beforeClass() {
        SparkProxy.getInstance().run();
        SparkProxy.getInstance().register(new TestBluePrint());