@Test
public void testSafeBorderMisbehavingDelegate() {

    JComponent comp = new JButton();
    MisbehavingBorder delegate = new MisbehavingBorder();
    assertNull("sanity", delegate.getBorderInsets(comp));
    assertNull("sanity", delegate.getBorderInsets(comp, null));
    SafeBorder border = new SafeBorder(delegate);
    assertNotNull(border.getBorderInsets(comp));
    assertNotNull(border.getBorderInsets(comp, null));
}