@Test
public void testPickerBorder() {

    // force loading of addon
    new JXDatePicker();
    Border pickerBorder = UIManager.getBorder("JXDatePicker.border");
    if (pickerBorder == null) {
        LOG.info("cant run test - no pickerborder");
        return;
    } 
    try {
        UIManager.put("JXDatePicker.border", "none");
        assertNull(UIManager.getBorder("JXDatePicker.border"));
        JXDatePicker picker = new JXDatePicker();
        JTextField field = new JFormattedTextField();
        assertEquals(field.getBorder(), picker.getEditor().getBorder());
    } finally {
        // restore LAF border
        UIManager.put("JXDatePicker.border", null);
        assertEquals(pickerBorder, UIManager.getBorder("JXDatePicker.border"));
    }
}