public void test(TestHarness harness)
{
// Check horizontal.
JSplitPane sp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
new JPanel(), new JPanel());
BasicSplitPaneUI ui = (BasicSplitPaneUI) sp.getUI();
Component divider = sp.getComponent(2);
divider.setLocation(1234, 5678);
harness.check(ui.getDividerLocation(sp), 1234);
// Check vertical.
sp = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
new JPanel(), new JPanel());
ui = (BasicSplitPaneUI) sp.getUI();
divider = sp.getComponent(2);
divider.setLocation(1234, 5678);
harness.check(ui.getDividerLocation(sp), 5678);
}