public class test
{
    public static void main(String[] args)
    { 
        System.out.println ("starting test.");

	SimpleComponent a = new SimpleComponent ("Fabio");
	SimpleComponent b = new SimpleComponent ("Paula");
        System.out.println ("created simple components.");

        try {
            a.configurator.addHook ("LeftHand");
            a.configurator.addHook ("RightHand");
            b.configurator.addHook ("LeftHand");
            b.configurator.addHook ("RightHand");

            System.out.println ("added hooks.");
            
            a.configurator.hook ("LeftHand", b.configurator);
            b.configurator.registerClient (a.configurator, "LeftHand");

            b.configurator.hook ("RightHand", a.configurator);
            a.configurator.registerClient (b.configurator, "RightHand");
            
            System.out.println ("hooked components and registered clients.");
            
        }
        catch (Exception e) {
            System.out.println("Caught the following exception: " +
                               e.toString ());
        }
        
        System.out.println ("done.");
	
    }// main ()


}// class test
