public void testExceptionTypeFilter()
{
ExpressionFilter filter = new ExpressionFilter("exception-type:java.lang.Exception");
filter.setMuleContext(muleContext);
MuleMessage m = new DefaultMuleMessage("test", muleContext);
assertTrue(!filter.accept(m));
m.setExceptionPayload(new DefaultExceptionPayload(new IllegalArgumentException("test")));
assertTrue(filter.accept(m));
filter = new ExpressionFilter("exception-type:java.io.IOException");
assertTrue(!filter.accept(m));
m.setExceptionPayload(new DefaultExceptionPayload(new IOException("test")));
assertTrue(filter.accept(m));
}