connection.addRequestProperty("Accept", "application/json, */*; q=.2");
BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF-8"));
String line = br.readLine();
// System.out.println(line);
Assert.assertEquals("{\"name\":\""+param+"\"}", line);
testWebServer.stop();
}
private TestWebServer createTestWebServer(final Object resource) {
return new TestWebServer(new Application() {