}
public InboundEndpoint getEndpoint() throws Exception
{
EndpointBuilder endpointBuilder = new EndpointURIEndpointBuilder("http://localhost:6789", muleContext);
endpointBuilder.setResponseTransformers(CollectionUtils.singletonList(new MuleMessageToHttpResponse()));
endpoint = muleContext.getEndpointFactory().getInboundEndpoint(endpointBuilder);
return endpoint;
}