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