public void setupMocks() throws EndpointException
{
when(endpoint.getEndpointURI()).thenReturn(new MuleEndpointURI("test://test", muleContext));
when(endpoint.getTransactionConfig()).thenReturn(new MuleTransactionConfig());
when(endpoint.getExchangePattern()).thenReturn(MessageExchangePattern.ONE_WAY);
when(flow.getProcessingStrategy()).thenReturn(new SynchronousProcessingStrategy());
when(muleContext.getConfiguration()).thenReturn(mock(MuleConfiguration.class));
}