return "org/mule/test/spring/service-overrides.xml";
}
public void testOverrideMessageReceiver() throws Exception
{
TestConnector connector = lookupDummyConnector();
// create an xa-transacted endpoint (this triggers the cration of an
// xaTransactedMessageReceiver in the service descriptor impl
InboundEndpoint endpoint = getTestInboundEndpoint("foo");
endpoint.getTransactionConfig().setAction(MuleTransactionConfig.ACTION_ALWAYS_BEGIN);
endpoint.getTransactionConfig().setFactory(new XaTransactionFactory());
TransportServiceDescriptor serviceDescriptor = connector.getServiceDescriptor();
// see if we get the overridden message receiver
MessageReceiver receiver = serviceDescriptor.createMessageReceiver(connector,
getTestService(), endpoint);
assertEquals(TestMessageReceiver.class, receiver.getClass());