Executes code in the spying process
The {@link MuleEvent}
In case of spy failure
269270271272273274275276277278279
public void createSpyIsCorrect() throws MuleException { SpyProcess spyProcess = module().createSpy(createMessageProcessors()); MuleEvent event = mock(MuleEvent.class); spyProcess.spy(event); verify(messageProcessor, times(1)).process(event); } @Test