@Test
    public void testForm() throws IOException {
        Assert.assertEquals("form", restService.bindForm("form"));

        DefaultHttpClient httpclient = new DefaultHttpClient();
        HttpPost httpPost = new HttpPost("http://127.0.0.1:8803/rest/bindForm");

        List<NameValuePair> list = new ArrayList<NameValuePair>();
        list.add(new BasicNameValuePair("formP", "formBBB"));
        HttpEntity httpEntity = new UrlEncodedFormEntity(list, Consts.UTF_8);

        httpPost.setEntity(httpEntity);

        HttpResponse httpResponse = httpclient.execute(httpPost);
        String result = EntityUtils.toString(httpResponse.getEntity());

        Assert.assertEquals("formBBB", result);
    }
@author <a href="mailto:lw111072@antfin.com">liangen</a>
test/test-integration/src/test/java/com/alipay/sofa/rpc/server/rest/RestDataBindingTest.java