BigDecimal zero = new BigDecimal(0);
BigDecimal positive = new BigDecimal(1);
positive.setScale(1);
BigDecimal positiveScaleTwo = new BigDecimal(1).setScale(2);
Item itemNegative = new PropertysetItem();
itemNegative.addItemProperty(PROPERTY1, new ObjectProperty<BigDecimal>(
negative, BigDecimal.class));
Item itemZero = new PropertysetItem();
itemZero.addItemProperty(PROPERTY1, new ObjectProperty<BigDecimal>(
zero, BigDecimal.class));
Item itemPositive = new PropertysetItem();
itemPositive.addItemProperty(PROPERTY1, new ObjectProperty<BigDecimal>(
positive, BigDecimal.class));
Item itemPositiveScaleTwo = new PropertysetItem();
itemPositiveScaleTwo.addItemProperty(PROPERTY1,
new ObjectProperty<BigDecimal>(positiveScaleTwo,
BigDecimal.class));
Filter equalZero = new Equal(PROPERTY1, zero);
Assert.assertFalse(equalZero.passesFilter(null, itemNegative));