}
public void test2(TestHarness harness)
{
harness.checkPoint("getBorderInsets(Component, Insets)");
MenuItemBorder b = new MenuItemBorder();
Insets insets = b.getBorderInsets(null, new Insets(1, 2, 3, 4));
harness.check(insets, new Insets(2, 2, 2, 2));
boolean pass = false;
try
{
b.getBorderInsets(new JButton("Test"), null);
}
catch (NullPointerException e)
{
pass = true;
}