fp1sfc.getValue() );
assertEquals( BaseSingleFieldConstraint.TYPE_PREDICATE,
fp1sfc.getConstraintValueType() );
assertTrue( fp1.getRightPattern() instanceof FromCompositeFactPattern );
FromCompositeFactPattern fp2 = (FromCompositeFactPattern) fp1.getRightPattern();
assertNotNull( fp2.getFactPattern() );
FactPattern fp3 = fp2.getFactPattern();
assertEquals( "Transaction",
fp3.getFactType() );
assertEquals( 0,
fp3.getNumberOfConstraints() );
assertNotNull( fp2.getExpression() );
ExpressionFormLine efl = fp2.getExpression();
assertEquals( 3,
efl.getParts().size() );
assertTrue( efl.getParts().get( 0 ) instanceof ExpressionVariable );
ExpressionVariable ev = (ExpressionVariable) efl.getParts().get( 0 );
assertEquals( "$trans",