}
@Test
public void testBasicModel() {
final ScoreCardModel model = new ScoreCardModel();
model.setName( "test" );
model.setPackageName( "org.drools.workbench.models.guided.scorecard.backend" );
model.getImports().addImport( new Import( "org.drools.workbench.models.guided.scorecard.backend.test1.Applicant" ) );
model.setReasonCodesAlgorithm( "none" );
model.setBaselineScore( 0.0 );
model.setInitialScore( 0.0 );
model.setFactName( "org.drools.workbench.models.guided.scorecard.backend.test1.Applicant" );
model.setFieldName( "score" );
model.setUseReasonCodes( false );
model.setReasonCodeField( "" );
final Characteristic c = new Characteristic();
c.setName( "c1" );
c.setFact( "org.drools.workbench.models.guided.scorecard.backend.test1.Applicant" );
c.setDataType( "Double" );
c.setField( "age" );
c.setBaselineScore( 0.0 );
c.setReasonCode( "" );
final Attribute a = new Attribute();
a.setOperator( "=" );
a.setValue( "10" );
a.setPartialScore( 0.1 );
a.setReasonCode( "" );
c.getAttributes().add( a );
model.getCharacteristics().add( c );
final String drl1 = GuidedScoreCardDRLPersistence.marshal( model );
assertNotNull( drl1 );
final String drl2 = GuidedScoreCardDRLPersistence.marshal( model );