@SuppressWarnings({ "unchecked", "boxing" })

@Test
public void testFilter5()
                        throws XMLStreamException, FactoryConfigurationError, IOException {
    Filter result = parse( "v100/testfilter5.xml" );
    OperatorFilter opFilter = (OperatorFilter) result;
    And op = (And) opFilter.getOperator();
    PropertyIsLessThan prop = (PropertyIsLessThan) op.getParameter( 0 );
    ValueReference propName = (ValueReference) prop.getParameter1();
    assertEquals( "DEPTH", propName.getAsText() );
    Literal<PrimitiveValue> literal = (Literal<PrimitiveValue>) prop.getParameter2();
    assertEquals( "30", literal.getValue().toString() );
    Not not = (Not) op.getParameter( 1 );
    Disjoint disjoint = (Disjoint) not.getParameter();
    Object[] params = disjoint.getParams();
    ValueReference dPropName = (ValueReference) params[0];
    assertEquals( "Geometry", dPropName.getAsText() );
    Envelope box = (Envelope) params[1];
    Point min = box.getMin();
    Point max = box.getMax();
    assertEquals( 13.0983, min.get0() );
    assertEquals( 31.5899, min.get1() );
    assertEquals( 35.5472, max.get0() );
    assertEquals( 42.8143, max.get1() );
}