{
// * tests that when a PluginCreateRule is defined with a default
// class, that the default class is instantiated when no class
// or id is specified in the xml file.
Digester digester = new Digester();
PluginRules rc = new PluginRules();
digester.setRules( rc );
PluginCreateRule pcr = new PluginCreateRule( Widget.class, TextLabel.class );
digester.addRule( "root/widget", pcr );
digester.addSetNext( "root/widget", "addChild" );