@Test
public void testSafeBorderBehavingDelegate() {

    JComponent comp = new JButton();
    AbstractBorder delegate = new BevelBorder(BevelBorder.LOWERED);
    SafeBorder border = new SafeBorder(delegate);
    assertNotNull(border.getBorderInsets(comp));
    assertNotNull(border.getBorderInsets(comp, null));
}