### Question:
AdapterUtils { public static LocalDate parseLocalDate(String s) { Objects.requireNonNull(s); return (s.length() > ISO_LOCAL_DATE_LENGTH) ? parseLocalDateTime(s).toLocalDate() : LocalDate.parse(s); } 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 testParseLocalDateFromDatetimeShouldReturnCorrectDate() throws Exception { assertEquals(LocalDate.of(2010, 6, 20), AdapterUtils.parseLocalDate("2010-06-20T12:30:00")); }
@Test public void testParseLocalDateFromDatetimeWithZShouldReturnCorrectDate() throws Exception { assertEquals(LocalDate.of(2010, 6, 20), AdapterUtils.parseLocalDate("2010-06-20T12:30:00Z")); }