public void testExceptionTypeFilter()
{
ExceptionTypeFilter filter = new ExceptionTypeFilter();
assertNull(filter.getExpectedType());
MuleMessage m = new DefaultMuleMessage("test", muleContext);
assertTrue(!filter.accept(m));
m.setExceptionPayload(new DefaultExceptionPayload(new IllegalArgumentException("test")));
assertTrue(filter.accept(m));
filter = new ExceptionTypeFilter(IOException.class);
assertTrue(!filter.accept(m));
m.setExceptionPayload(new DefaultExceptionPayload(new IOException("test")));
assertTrue(filter.accept(m));
}