public void test(TestHarness harness)
{
JProgressBar pb = new JProgressBar();
harness.check(pb.getOrientation(), SwingConstants.HORIZONTAL);
pb.addPropertyChangeListener(this);
pb.setOrientation(SwingConstants.VERTICAL);
harness.check(pb.getOrientation(), SwingConstants.VERTICAL);
harness.check(lastEvent.getPropertyName(), "orientation");
harness.check(lastEvent.getOldValue(),
new Integer(SwingConstants.HORIZONTAL));