"when\n" +
" Person( shortField == 1000 )\n" +
"then\n" +
"end";
final GuidedDecisionTree model = new GuidedDecisionTree();
model.setTreeName( "test" );
final TypeNode type = new TypeNodeImpl( "Person" );
final ConstraintNode c1 = new ConstraintNodeImpl( "Person",
"shortField",
"==",
new ShortValue( new Short( "1000" ) ) );
model.setRoot( type );
type.addChild( c1 );
final String drl = GuidedDecisionTreeDRLPersistence.getInstance().marshal( model );
assertEqualsIgnoreWhitespace( expected,
drl );