@Test
public void parseOperatorFilter()
                        throws XMLStreamException, FactoryConfigurationError, IOException {

    Filter filter = parse( "testfilter_110_operator.xml" );
    Assert.assertNotNull( filter );
    Assert.assertEquals( Filter.Type.OPERATOR_FILTER, filter.getType() );
    OperatorFilter operatorFilter = (OperatorFilter) filter;
    Assert.assertEquals( Operator.Type.LOGICAL, operatorFilter.getOperator().getType() );
    LogicalOperator logicalOperator = (LogicalOperator) operatorFilter.getOperator();
    Assert.assertEquals( LogicalOperator.SubType.AND, logicalOperator.getSubType() );
    And and = (And) logicalOperator;
    Assert.assertEquals( 2, and.getSize() );
    Assert.assertEquals( Operator.Type.COMPARISON, and.getParameter( 0 ).getType() );
    ComparisonOperator param1Oper = (ComparisonOperator) and.getParameter( 0 );
    Assert.assertEquals( ComparisonOperator.SubType.PROPERTY_IS_GREATER_THAN, param1Oper.getSubType() );
    Assert.assertEquals( Operator.Type.COMPARISON, and.getParameter( 1 ).getType() );
    ComparisonOperator param2Oper = (ComparisonOperator) and.getParameter( 1 );
    Assert.assertEquals( ComparisonOperator.SubType.PROPERTY_IS_EQUAL_TO, param2Oper.getSubType() );
}