public void testCommitsWorkIfNoTransactionDefined() throws Exception
{
DbConnection connection = mock(DbConnection.class);
DbConnectionFactory dbConnectionFactory = mock(DbConnectionFactory.class);
when(dbConnectionFactory.createConnection(TransactionalAction.JOIN_IF_POSSIBLE)).thenReturn(connection);
QueryExecutor updateExecutor = mock(QueryExecutor.class);
UpdateMessageProcessor processor = new UpdateMessageProcessor(null, null, null, null, null);
MuleEvent event = mock(MuleEvent.class);
MuleMessage muleMessage = mock(MuleMessage.class);
when(event.getMessage()).thenReturn(muleMessage);