// 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/main/java/net/jflask/ResponseConverter.java
// public interface ResponseConverter<T> {
// 
//   void convert(T data, Response resp) throws Exception;
// }


import net.jflask.Convert;
import net.jflask.Response;
import net.jflask.ResponseConverter;
import net.jflask.Route;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
package net.jflask.test;



public class ConverterTest extends AbstractAppTest {

  @Convert("STAR")
  @Route("/hello/:name")
  public String hello(String name) {
    return "Hello " + name;
  }

  @Override
  protected void preScan() {
    app.addConverter("FOO", new ResponseConverter<String>() {
// 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/main/java/net/jflask/ResponseConverter.java
// public interface ResponseConverter<T> {
// 
//   void convert(T data, Response resp) throws Exception;
// }


// Path: jflask/src/test/java/net/jflask/test/ConverterTest.java
import net.jflask.Convert;
import net.jflask.Response;
import net.jflask.ResponseConverter;
import net.jflask.Route;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

package net.jflask.test;



public class ConverterTest extends AbstractAppTest {

  @Convert("STAR")
  @Route("/hello/:name")
  public String hello(String name) {
    return "Hello " + name;
  }

  @Override
  protected void preScan() {
    app.addConverter("FOO", new ResponseConverter<String>() {
      public void convert(String data, Response resp) throws Exception {