MockMessageExchange odeMex = new MockMessageExchange();
odeMex.op = dummyBinding.getBindingOperation("hello", null, null).getOperation();
odeMex.req = new MockMessage(msgEl);
odeMex.epr = new MockEPR(uri);
HttpMethod httpMethod = dummyBuilder.createHttpRequest(odeMex, new DefaultHttpParams());
assertTrue("POST".equalsIgnoreCase(httpMethod.getName()));
assertEquals("Generated URI does not match", expectedUri, httpMethod.getURI().toString());
String b = ((StringRequestEntity) ((PostMethod) httpMethod).getRequestEntity()).getContent();
assertEquals("Invalid body in generated http query", DOMUtils.domToString(helloEl), b);