@Test
ublic void testDayGridPositionAtLocationRows() {

   // 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);
   int calendarRow = BasicMonthViewUI.DAY_HEADER_ROW;
   for (int row = 0; row <= BasicMonthViewUI.WEEKS_IN_MONTH; row++) {
       Point location = getLocationInRow(ui, row);
       // first row below month header == days of week header 
       Point dayGridPosition = ui.getDayGridPositionAtLocation(location.x, location.y); 
       assertEquals("calendarRow at absolute row " + row, 
               calendarRow, dayGridPosition.y);
       calendarRow++;
   }
}