assertNotNull( m );
assertTrue( m.lhs[ 0 ] instanceof FromAccumulateCompositeFactPattern );
FromAccumulateCompositeFactPattern pattern = (FromAccumulateCompositeFactPattern) m.lhs[ 0 ];
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 );