public void testRunSpyProcess() throws MuleException
{
ArrayList<SpyProcess> calls = new ArrayList<SpyProcess>();
Spy spy = new Spy();
calls.add(spy);
SpyAssertion spyAssertion = new MunitSpy(muleContext).spyMessageProcessor("test")
.ofNamespace("testNamespace")
.createSpyAssertion(new MessageProcessorCall(new MessageProcessorId("test", "testNamespace")), calls);
for (MessageProcessor mp : spyAssertion.getMessageProcessors())
{
mp.process(null);
}
assertEquals(1, spy.timesCalled);