@Test
public void testCustomLocaleSet() {

    Locale german = Locale.GERMAN;
    JXDatePicker picker = new JXDatePicker();
    picker.setLocale(german);
    SimpleDateFormat format = (SimpleDateFormat) picker.getFormats()[0];
    String pattern = UIManagerExt.getString("JXDatePicker.longFormat", german);
    assertEquals(pattern , format.toPattern());
}