@SuppressWarnings("unchecked")
@Test
public void testFilter16()
                        throws XMLStreamException, FactoryConfigurationError, IOException {

    Filter result = parse( "v100/testfilter16.xml" );
    OperatorFilter opFilter = (OperatorFilter) result;
    And and = (And) opFilter.getOperator();
    PropertyIsGreaterThan pg = (PropertyIsGreaterThan) and.getParameter( 0 );
    ValueReference pn1 = (ValueReference) pg.getParameter1();
    assertEquals( "Person/Age", pn1.getAsText() );
    Literal<PrimitiveValue> lit1 = (Literal<PrimitiveValue>) pg.getParameter2();
    assertEquals( "50", lit1.getValue().toString() );
    PropertyIsEqualTo pe = (PropertyIsEqualTo) and.getParameter( 1 );
    ValueReference pn2 = (ValueReference) pe.getParameter1();
    assertEquals( "Person/Address/City", pn2.getAsText() );
    Literal<PrimitiveValue> lit2 = (Literal<PrimitiveValue>) pe.getParameter2();
    assertEquals( "Toronto", lit2.getValue().toString() );
}