@Test
public void testParseYearMonthDayNoDash() {

  String toParse = "20010101";
  LocalDate localDate = DateUtil.parseLocalDate(toParse);
  assertNotNull("Error parsing yyyyMMdd", localDate);
  assertEquals(2001, localDate.getYear());
  assertEquals(1, localDate.getMonthOfYear());
  assertEquals(1, localDate.getDayOfMonth());
  toParse = "20001032";
  assertNull("Error parsing yyyyMMdd", DateUtil.parseLocalDate(toParse));
}