public void testPayloadTypeFilter()
{
ExpressionFilter filter = new ExpressionFilter("payload-type:org.mule.tck.testmodels.fruit.Apple");
filter.setMuleContext(muleContext);
assertTrue(filter.accept(new DefaultMuleMessage(new Apple(), muleContext)));
assertTrue(!filter.accept(new DefaultMuleMessage("test", muleContext)));
filter = new ExpressionFilter("payload-type:java.lang.String");
assertTrue(filter.accept(new DefaultMuleMessage("test", muleContext)));
assertTrue(!filter.accept(new DefaultMuleMessage(new Exception("test"), muleContext)));