assertNotNull( pattern.getFactPattern() );
FactPattern factPattern = pattern.getFactPattern();
assertEquals( "total", factPattern.getBoundName() );
assertNotNull( factPattern.getConstraintList() );
assertEquals( 1, factPattern.getConstraintList().getNumberOfConstraints() );
FieldConstraint constraint = factPattern.getConstraintList().getConstraint( 0 );
assertTrue( constraint instanceof SingleFieldConstraint );
SingleFieldConstraint fieldConstraint = (SingleFieldConstraint) constraint;
assertEquals( "Number", fieldConstraint.getFactType() );
assertEquals( "intValue", fieldConstraint.getFieldName() );
assertEquals( "Integer", fieldConstraint.getFieldType() );