### Question:
AdapterUtils { public static Date parseDate(String s) { Objects.requireNonNull(s); LocalDateTime ldt = parseLocalDateTime(s); return Date.from(ldt.atZone(ZoneId.systemDefault()).toInstant()); } private  AdapterUtils(); static Boolean parseBoolean(String s); static Date parseDate(String s); static LocalDate parseLocalDate(String s); static LocalDateTime parseLocalDateTime(String s); static String withoutDecimals(String s); static Enum<?> findEnumIgnoreCase(Class<? extends Enum<?>> enumType, String name); static Class<?> uncheckedClassForName(String s);  }### Answer:
@Test public void testParseDate2010_06_20ShouldReturnCorrectDate() throws Exception { assertEquals(new Date(110, 5, 20), AdapterUtils.parseDate("2010-06-20")); }
@Test(expected = RuntimeException.class) public void testParseInvalidDateShouldThrowException() throws Exception { AdapterUtils.parseDate("ABC_2010-06-20"); }
@Test(expected = NullPointerException.class) public void testParseNullDateShouldThrowException() throws Exception { AdapterUtils.parseDate(null); }