*/
@Test(groups = "unit", testName = "pcs2.BindContainerNameToXmlPayloadTest")
public class BindContainerNameToXmlPayloadTest {
public void test() {
BindContainerNameToXmlPayload binder = new BindContainerNameToXmlPayload();
HttpRequest request = new HttpRequest("GET", URI.create("http://localhost"));
binder.bindToRequest(request, "foo");
assertEquals(request.getPayload().getRawContent(), "<container><name>foo</name></container>");
assertEquals(request.getPayload().getContentMetadata().getContentLength(), Long.valueOf(
"<container><name>foo</name></container>".getBytes().length));
assertEquals(request.getPayload().getContentMetadata().getContentType(), "application/unknown");