}
@Test
public void testExpressionFilterWithBooleanLogic() throws Exception
{
ExpressionFilter filter = new ExpressionFilter("#[json:[0]/text]");
filter.setMuleContext(muleContext);
assertTrue(filter.accept(message));
filter.setExpression("[0]/favorited=false");
assertTrue(filter.accept(message));
filter.setExpression("[0]/truncated != true");
assertFalse(filter.accept(message));
filter.setExpression("[0]/source=null");
assertFalse(filter.accept(message));
filter.setExpression("[0]/source!= null");
assertTrue(filter.accept(message));
}