@Test
public void testStrictDatePattern() {

    Parser<Date> p = Parsers.onStrictDatePattern("yyyy-MM", Locale.ROOT);
    assertCompliance(p);
    Date jan2010 = new GregorianCalendar(2010, 0, 1).getTime();
    assertThat(p.parse("2010-01")).isEqualTo(jan2010);
    assertThat(p.parse("2010-02")).isNotEqualTo(jan2010);
    assertThat(p.parse("2010-01-01")).isNull();
}