assertEquals( "myruleset", ruleset.getName() );
assertEquals( 3, ruleset.getImports().size() );
assertEquals( 6, ruleset.getRules().size() );
// check imports
Import imp = (Import) ruleset.getImports().get( 0 );
assertEquals( "blah.class1", imp.getClassName() );
imp = (Import) ruleset.getImports().get( 1 );
assertEquals( "blah.class2", imp.getClassName() );
imp = (Import) ruleset.getImports().get( 2 );
assertEquals( "lah.di.dah", imp.getClassName() );
// check rules
Rule rule = (Rule) ruleset.getRules().get( 0 );
Condition cond = (Condition) rule.getConditions().get( 0 );
assertEquals( "Foo(myObject.getColour().equals(red), myObject.size () > 12\\\")",