### Question:
TemporalUtilities { @Deprecated public static Date parseDate(final String date) throws ParseException, NullPointerException { return parseDate(date, false); } private  TemporalUtilities(); static Date getDateFromString(final String dateString); static Date getDateFromString(String dateString, final boolean noGMTO); static String getTimeZone(final String dateString); static long getTimeInMillis(String periodDuration); static Duration getDurationFromString(String periodDuration); static Date julianToDate(final JulianDate jdt); static Date calendarDateToDate(final CalendarDate calDate); static Date dateAndTimeToDate(final DateAndTime dateAndTime); static Date temporalCoordToDate(
            final TemporalCoordinate temporalCoord); static Date ordinalToDate(final OrdinalPosition ordinalPosition); static Unit getUnitFromDuration(final Duration duration); @Deprecated static Date parseDate(final String date); @Deprecated static Date parseDate(final String date, final boolean noGMTO); static Calendar parseDateCal(final String date); static Date parseDateSafe(final String date, final boolean neverNull); static Date parseDateSafe(final String date, final boolean neverNull, final boolean noGMTO); static String durationToString(long time); static String toISO8601(final Date date); static String toISO8601(final Date date, TimeZone timezone); static String toISO8601Z(final Date date, TimeZone timezone); static final Unit<javax.measure.quantity.Time> MONTH_UNIT; static final Unit<javax.measure.quantity.Time> YEAR_UNIT; }### Answer:
@Test public void dateErrorParsingTest() { try { TemporalUtilities.parseDate("fsdfsdfs"); fail("Parsing should have raise a parse exception."); } catch (ParseException ex) { } try { TemporalUtilities.parseDate(null); fail("Parsing should have raise a null pointer exception."); } catch (NullPointerException ex) { } catch (ParseException ex) { fail("Parsing should have raise a null pointer exception."); } }