I am new to mule ESB. I am trying to do integration test for a rest endpoint exposed via mule flow. The following code, hits POST REST endpoint but how can we say the rest params and http method (get or post or delete etc.,) :
MuleClient client = new MuleClient(muleContext);
String payload = "foo";
Map<String, Object> properties = new HashMap<String, Object>();
MuleMessage result = client.send("http://localhost:5000/rest/resource", payload, properties);
Should we set any thing in the payload or properties (Map) that is passed ?