@Test
public void testPickerFormatterUIResourceCustomLocale() {

    Locale locale = Locale.FRENCH;
    DatePickerFormatter formatter = new DatePickerFormatterUIResource(locale);
    SimpleDateFormat format = (SimpleDateFormat) formatter.getFormats()[0];
    String pattern = UIManagerExt.getString("JXDatePicker.longFormat", locale);
    assertEquals("format pattern must be same as from localized resource", 
            pattern, format.toPattern());
}