}
protected MessageReceiver createMessageReciever(MessageExchangePattern mep) throws MuleException
{
AbstractConnector connector = Mockito.mock(AbstractConnector.class);
Mockito.when(connector.getSessionHandler()).thenReturn(new NullSessionHandler());
FlowConstruct flowConstruct = Mockito.mock(FlowConstruct.class);
InboundEndpoint endpoint = Mockito.mock(InboundEndpoint.class);
Mockito.when(endpoint.getExchangePattern()).thenReturn(mep);