* @param harness
*/
private void testWithBorder(TestHarness harness)
{
harness.checkPoint("withBorder");
JRootPane rp = new JRootPane();
rp.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
rp.setSize(100, 100);
rp.getLayout().layoutContainer(rp);
Insets i = rp.getInsets();
// Check the glass pane.
Component gp = rp.getGlassPane();
harness.check(gp.getBounds(),
new Rectangle(i.left, i.right,
rp.getWidth() - i.left - i.right,
rp.getHeight() - i.top - i.bottom));
// Check the layered pane.
Component lp = rp.getLayeredPane();
harness.check(lp.getBounds(),
new Rectangle(i.left, i.right,
rp.getWidth() - i.left - i.right,
rp.getHeight() - i.top - i.bottom));
// Check the content pane.
Component cp = rp.getContentPane();
harness.check(cp.getBounds(),
new Rectangle(0, 0, rp.getWidth() - i.left - i.right,
rp.getHeight() - i.top - i.bottom));
}