@Test
public void testLocale() {

    Locale[] locales = Locale.getAvailableLocales();
    for (Locale l : locales) {
        JComponent.setDefaultLocale(l);
        JXMonthView monthView = new JXMonthView();
        Locale locale = monthView.getLocale();
        Calendar cal = Calendar.getInstance(locale);
        int expectedFirstDayOfWeek = cal.getFirstDayOfWeek();
        assertTrue(expectedFirstDayOfWeek == monthView.getFirstDayOfWeek());
    }
}