Map<String, String> mapPayload = new HashMap<String, String>();
mapPayload.put("key1", "value1");
mapPayload.put("key2", "value2");
LocalMuleClient client = muleContext.getClient();
client.dispatch("vm://testInput", mapPayload, null);
MuleMessage response = client.request("vm://testOut", RECEIVE_TIMEOUT);
assertEquals(mapPayload, response.getPayload());
}