}
public void testVertical(TestHarness harness)
{
MyBasicScrollBarUI ui = new MyBasicScrollBarUI();
JScrollBar scrollBar = new JScrollBar(JScrollBar.VERTICAL);
scrollBar.setUI(ui);
scrollBar.setBounds(0, 0, 20, 100);
ui.layoutContainer(scrollBar);
harness.check(ui.getTrackBounds(), new Rectangle(0, 16, 20, 68));
harness.check(ui.getThumbBounds(), new Rectangle(0, 16, 20, 8));
scrollBar.setBounds(40, 50, 37, 250);
ui.layoutContainer(scrollBar);
harness.check(ui.getTrackBounds(), new Rectangle(0, 16, 37, 218));
harness.check(ui.getThumbBounds(), new Rectangle(0, 16, 37, 21));
}