@Test
ublic void testDayGridPositionAtLocationFirstWeekRow() {

   // This test will not work in a headless configuration.
   if (GraphicsEnvironment.isHeadless()) {
       LOG.fine("cannot run test - headless environment");
       return;
   }
   BasicMonthViewUI ui = getRealizedMonthViewUI(ComponentOrientation.RIGHT_TO_LEFT);
   // location in second (geometrical, calculated from day size) grid row
   Point location = getLocationInRow(ui, 1);
   Point dayInGrid = ui.getDayGridPositionAtLocation(location.x, location.y); 
  
   assertEquals("first row", BasicMonthViewUI.FIRST_WEEK_ROW, dayInGrid.y);
}