}
public void test(TestHarness harness)
{
Container c = new Container();
Label l1 = new Label("ABC");
Container c1 = new Container();
Label l2 = new Label("DEF");
Container c2 = new Container();
Label l3 = new Label("GHI");
c.add(l1);
c.add(c1);
c1.add(l2);
c1.add(c2);
c2.add(l3);
harness.check(c.getComponentOrientation(), ComponentOrientation.UNKNOWN);
harness.check(c1.getComponentOrientation(), ComponentOrientation.UNKNOWN);
harness.check(c2.getComponentOrientation(), ComponentOrientation.UNKNOWN);
harness.check(l1.getComponentOrientation(), ComponentOrientation.UNKNOWN);
harness.check(l2.getComponentOrientation(), ComponentOrientation.UNKNOWN);
harness.check(l3.getComponentOrientation(), ComponentOrientation.UNKNOWN);
c.addPropertyChangeListener(this);
c1.addPropertyChangeListener(this);
c2.addPropertyChangeListener(this);
l1.addPropertyChangeListener(this);
l2.addPropertyChangeListener(this);
l3.addPropertyChangeListener(this);
c.applyComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
harness.check(c.getComponentOrientation(),
ComponentOrientation.LEFT_TO_RIGHT);
harness.check(c1.getComponentOrientation(),
ComponentOrientation.LEFT_TO_RIGHT);
harness.check(c2.getComponentOrientation(),
ComponentOrientation.LEFT_TO_RIGHT);
harness.check(l1.getComponentOrientation(),
ComponentOrientation.LEFT_TO_RIGHT);
harness.check(l2.getComponentOrientation(),
ComponentOrientation.LEFT_TO_RIGHT);
harness.check(l3.getComponentOrientation(),
ComponentOrientation.LEFT_TO_RIGHT);
harness.check(events.size(), 6);
PropertyChangeEvent e0 = (PropertyChangeEvent) events.get(0);
harness.check(e0.getSource(), c);