@Test
ublic void testDayGridPositionAtLocationLastWeekRow() {

   // 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);
   Point location = getLocationInRow(ui, BasicMonthViewUI.WEEKS_IN_MONTH); 
   Point dayInGrid = ui.getDayGridPositionAtLocation(location.x, location.y);
  
   assertEquals("first row", BasicMonthViewUI.LAST_WEEK_ROW, dayInGrid.y);
}