public class ObjectToHttpClientMethodRequestTestCase extends AbstractMuleTestCase
{
private MuleMessage setupRequestContext(final String url, final String method) throws Exception
{
HttpRequest request = new HttpRequest(new RequestLine(method, url, HttpVersion.HTTP_1_1), null, "UTF-8");
MuleEvent event = getTestEvent(request, muleContext.getEndpointFactory().getInboundEndpoint(url));
MuleMessage message = event.getMessage();
message.setOutboundProperty(HttpConnector.HTTP_METHOD_PROPERTY, method);
message.setOutboundProperty(MuleProperties.MULE_ENDPOINT_PROPERTY, url);