public void testStandAloneWithExtends() throws Exception {
String rule = "when \nFoo()\nthen\n\tbar()";
DRLFileContentHandler h = new DRLFileContentHandler();
assertTrue( DRLFileContentHandler.isStandAloneRule( rule ) );
String r = h.wrapRuleDeclaration( "whee",
"parentRule",
rule );
assertTrue( r.indexOf( "extends parentRule" ) > -1 );
rule = "dialect 'java'\nwhen \nFoo()\nthen\n\tbar()";