// Path: src/test/java/e2e/org/rockm/blink/support/HttpUtil.java
// public static String fullPath(String path) {
//     return format("%s" + path, DOMAIN);
// }
// 
// Path: src/test/java/e2e/org/rockm/blink/support/HttpUtil.java
// public static String getBodyFrom(HttpResponse response) throws IOException {
//     return IOUtils.toString(response.getEntity().getContent(), "UTF-8");
// }


import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.entity.StringEntity;
import org.junit.Test;
import static e2e.org.rockm.blink.support.HttpUtil.fullPath;
import static e2e.org.rockm.blink.support.HttpUtil.getBodyFrom;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
package e2e.org.rockm.blink;



public class PutFeatureTest extends BlinkServerTest {

    @Test
    public void shouldEchoPutRequest() throws Exception {
        blinkServer.put("/hello", (req, res) -> req.body());
        HttpPut request = new HttpPut(fullPath("/hello"));
// Path: src/test/java/e2e/org/rockm/blink/support/HttpUtil.java
// public static String fullPath(String path) {
//     return format("%s" + path, DOMAIN);
// }
// 
// Path: src/test/java/e2e/org/rockm/blink/support/HttpUtil.java
// public static String getBodyFrom(HttpResponse response) throws IOException {
//     return IOUtils.toString(response.getEntity().getContent(), "UTF-8");
// }


// Path: src/test/java/e2e/org/rockm/blink/PutFeatureTest.java
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.entity.StringEntity;
import org.junit.Test;
import static e2e.org.rockm.blink.support.HttpUtil.fullPath;
import static e2e.org.rockm.blink.support.HttpUtil.getBodyFrom;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

package e2e.org.rockm.blink;



public class PutFeatureTest extends BlinkServerTest {

    @Test
    public void shouldEchoPutRequest() throws Exception {
        blinkServer.put("/hello", (req, res) -> req.body());
        HttpPut request = new HttpPut(fullPath("/hello"));
        request.setEntity(new StringEntity("Dudu"));