//<start id="lis_12_xml-remote-dispatch-2"/>
MuleClient muleClient = new MuleClient(true);
RemoteDispatcher remoteDispatcher =
muleClient.getRemoteDispatcher("http://localhost:8080/_remoting");
//<end id="lis_12_xml-remote-dispatch-2"/>
FutureMessageResult asyncResponse = remoteDispatcher.sendAsyncRemote(
"clientServiceChannel", TEST_CLIENT_ID, null);
MuleMessage result = asyncResponse.getMessage();
muleClient.dispose();
assertThat(result.getPayloadAsString(), is("fake_client_data"));
// ensure that Mule client runs in a different context than Mule that is called remotely