@Test
public void testMonthBoundsNullDate() {

    // This test will not work in a headless configuration.
    if (GraphicsEnvironment.isHeadless()) {
        LOG.fine("cannot run test - headless environment");
        return;
    }
    BasicMonthViewUI ui = getRealizedMonthViewUI(ComponentOrientation.LEFT_TO_RIGHT);
    try {
        ui.getMonthBounds(null);
        fail("date param null is not allowed - must fire NPE");
    } catch (NullPointerException ex) {
        // that's what we expect
    }
}