@Test
public void evaluateBooleanSimplePredicate(){

	FieldName flag = FieldName.create("flag");
	SimplePredicate simplePredicate = new SimplePredicate(flag, SimplePredicate.Operator.EQUAL, "true");
	assertEquals(Boolean.TRUE, evaluate(simplePredicate, flag, true));
	assertEquals(Boolean.FALSE, evaluate(simplePredicate, flag, false));
	simplePredicate.setOperator(SimplePredicate.Operator.NOT_EQUAL);
	assertEquals(Boolean.FALSE, evaluate(simplePredicate, flag, true));
	assertEquals(Boolean.TRUE, evaluate(simplePredicate, flag, false));
	simplePredicate.setValue("0.5");
	simplePredicate.setOperator(SimplePredicate.Operator.LESS_OR_EQUAL);
	assertEquals(Boolean.FALSE, evaluate(simplePredicate, flag, true));
	assertEquals(Boolean.TRUE, evaluate(simplePredicate, flag, false));
	simplePredicate.setOperator(SimplePredicate.Operator.GREATER_THAN);
	assertEquals(Boolean.TRUE, evaluate(simplePredicate, flag, true));
	assertEquals(Boolean.FALSE, evaluate(simplePredicate, flag, false));
}