*/
@Test
public void booleanLiteral() throws Exception {
Filter filter;
PropertyIsEqualTo eqFilter;
//test true value
filter = CompilerUtil.parseFilter(this.language, "attr = true");
Assert.assertNotNull(filter);
Assert.assertTrue(filter instanceof PropertyIsEqualTo);
eqFilter = (PropertyIsEqualTo) filter;
Assert.assertEquals("attr", ((PropertyName) eqFilter.getExpression1()).getPropertyName());
Assert.assertEquals(Boolean.TRUE, ((Literal) eqFilter.getExpression2()).getValue());
//test false value
filter = CompilerUtil.parseFilter(this.language, "attr = false");
Assert.assertNotNull(filter);
Assert.assertTrue(filter instanceof PropertyIsEqualTo);
eqFilter = (PropertyIsEqualTo) filter;
Assert.assertEquals("attr", ((PropertyName) eqFilter.getExpression1()).getPropertyName());
Assert.assertEquals(Boolean.FALSE, ((Literal) eqFilter.getExpression2()).getValue());
}