"end";
final GuidedDecisionTree model = new GuidedDecisionTree();
model.setTreeName( "test" );
final TypeNode type = new TypeNodeImpl( "Person" );
final ConstraintNode c1 = new ConstraintNodeImpl( "Person",
"name",
"==",
new StringValue( "Michael" ) );
final ConstraintNode c2 = new ConstraintNodeImpl( "Person",
"age",
"==",
new IntegerValue( 41 ) );
final ConstraintNode c3 = new ConstraintNodeImpl( "Person",
"gender",
"==",
new StringValue( "Male" ) );
model.setRoot( type );
type.addChild( c1 );
type.addChild( c2 );
type.addChild( c3 );
final String drl = GuidedDecisionTreeDRLPersistence.getInstance().marshal( model );
assertEqualsIgnoreWhitespace( expected,
drl );
}