public void testObjectAwareInjection() throws Exception
{
EndpointURIEndpointBuilder endpointBuilder = new EndpointURIEndpointBuilder(TEST_URI, muleContext);
endpointBuilder.addMessageProcessor(new ObjectAwareProcessor());
endpoint = endpointBuilder.buildInboundEndpoint();
endpoint.setListener(new NullMessageProcessor());
endpoint.setFlowConstruct(getTestService());
endpoint.start();
ObjectAwareProcessor objectAware = (ObjectAwareProcessor) endpoint.getMessageProcessors().get(0);