public void testFilterPass() throws Exception
{
TestSecurityFilter securityFilter = new TestSecurityFilter(true);
InboundEndpoint endpoint = createTestInboundEndpoint(null, securityFilter,
MessageExchangePattern.REQUEST_RESPONSE, null);
InterceptingMessageProcessor mp = new SecurityFilterMessageProcessor(securityFilter);
TestListener listner = new TestListener();
mp.setListener(listner);
MuleEvent inEvent = createTestInboundEvent(endpoint);
MuleEvent resultEvent = mp.process(inEvent);
assertNotNull(listner.sensedEvent);
assertSame(inEvent, listner.sensedEvent);
assertEquals(inEvent, resultEvent);
}