@Test
public void testParseYearMonth() {

  String toParse = "2000-12";
  LocalDate localDate = DateUtil.parseLocalDate(toParse);
  assertNotNull("Error parsing yyyy-MM", localDate);
  assertEquals(2000, localDate.getYear());
  assertEquals(12, localDate.getMonthOfYear());
  assertEquals(1, localDate.getDayOfMonth());
  toParse = "2010-20";
  assertNull("Error parsing yyyy-MM", DateUtil.parseLocalDate(toParse));
}