public void testRead() throws JiBXException {
IBindingFactory bfact = BindingDirectory.getFactory(StyledLayerDescriptorInfo.class);
IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
Object object = uctx.unmarshalDocument(getClass().getResourceAsStream("samples/filter/property_is_equal.xml"), null);
FilterTypeInfo filter = (FilterTypeInfo) object;
Assert.assertTrue(filter.ifComparisonOps());
Assert.assertTrue(filter.getComparisonOps() instanceof PropertyIsEqualToInfo);
PropertyIsEqualToInfo p = (PropertyIsEqualToInfo) filter.getComparisonOps();
Assert.assertEquals(2, p.getExpressionList().size());
ExpressionInfo left = p.getExpressionList().get(0);
ExpressionInfo right = p.getExpressionList().get(1);