@Test
public void testMonthGridPositionAtLocation() {

    // This test will not work in a headless configuration.
    if (GraphicsEnvironment.isHeadless()) {
        LOG.fine("cannot run test - headless environment");
        return;
    }
    BasicMonthViewUI uiRToL = getRealizedMonthViewUI(ComponentOrientation.RIGHT_TO_LEFT);
    BasicMonthViewUI uiLToR = getRealizedMonthViewUI(ComponentOrientation.LEFT_TO_RIGHT);
    Point gridPositionLToR = uiLToR.getMonthGridPositionAtLocation(20, 20);
    assertEquals(0, gridPositionLToR.x);
    Point gridPositionRToL = uiRToL.getMonthGridPositionAtLocation(20, 20);
    assertEquals(1, gridPositionRToL.x);
}