// Path: jflask/src/main/java/net/jflask/CustomResponse.java
// public interface CustomResponse {
//   CustomResponse INSTANCE = new CustomResponse() {};
// }
// 
// Path: jflask/src/main/java/net/jflask/Response.java
// public interface Response {
// 
//   void addHeader(String header, String value);
// 
//   /**
//    * Warning: must be called after addHeader().
//    *
//    * @param status
//    * @see java.net.HttpURLConnection
//    */
//   void setStatus(int status);
// 
//   OutputStream getOutputStream();
// 
// }


import java.io.IOException;
import net.jflask.CustomResponse;
import net.jflask.Response;
import net.jflask.Route;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
package net.jflask.test;




/**
 * Misc POST tests.
 */
public class AsyncResponseTest extends AbstractAppTest {

  @Route("/sync")
  public CustomResponse replySync() throws IOException {
    reply(app.getResponse());
    return CustomResponse.INSTANCE;
  }

// Path: jflask/src/main/java/net/jflask/CustomResponse.java
// public interface CustomResponse {
//   CustomResponse INSTANCE = new CustomResponse() {};
// }
// 
// Path: jflask/src/main/java/net/jflask/Response.java
// public interface Response {
// 
//   void addHeader(String header, String value);
// 
//   /**
//    * Warning: must be called after addHeader().
//    *
//    * @param status
//    * @see java.net.HttpURLConnection
//    */
//   void setStatus(int status);
// 
//   OutputStream getOutputStream();
// 
// }


// Path: jflask/src/test/java/net/jflask/test/AsyncResponseTest.java
import java.io.IOException;
import net.jflask.CustomResponse;
import net.jflask.Response;
import net.jflask.Route;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

package net.jflask.test;




/**
 * Misc POST tests.
 */
public class AsyncResponseTest extends AbstractAppTest {

  @Route("/sync")
  public CustomResponse replySync() throws IOException {
    reply(app.getResponse());
    return CustomResponse.INSTANCE;
  }

  private void reply(Response resp) throws IOException {