public void testExpression() {
Event event = new Event();
event.setContent("test");
event.setEventType(EventTypeEnum.FAULT_IN);
event.getCustomInfo().put("key1", "value1");
MessageInfo messageInfo = new MessageInfo();
messageInfo.setFlowId("urn:flowid");
messageInfo.setMessageId("urn:messageId");
messageInfo.setOperationName("{namespace}opname");
messageInfo.setPortType("{namespace}portname");
messageInfo.setTransportType("http");
event.setMessageInfo(messageInfo);
JxPathFilter jxPathFilter = new JxPathFilter();
jxPathFilter.setExpression("content='test'");
Assert.assertTrue("Event should be filtered ", jxPathFilter.filter(event));