@Test
public void testUpdateUIFirstMonth() {

    Calendar cal = Calendar.getInstance();
    cal.set(Calendar.MONTH, 5);
    // need to instantiate with a month different from jan
    final JXMonthView monthView = new JXMonthView(cal.getTime());
    long first = ((BasicMonthViewUI) monthView.getUI()).getFirstDisplayedMonth();
    monthView.updateUI();
    assertEquals(first, ((BasicMonthViewUI) monthView.getUI()).getFirstDisplayedMonth());
}