@Test
public void testYearFreqPosParser() {

    Parsers.Parser<Date> parser = StrangeParsers.yearFreqPosParser();
    Assert.assertEquals(D_2010_01_01, parser.parse("2010M1"));
    Assert.assertEquals(D_2010_01_01, parser.parse("2010-M1"));
    Assert.assertEquals(D_2010_02_01, parser.parse("2010M2"));
    Assert.assertEquals(D_2010_02_01, parser.parse("2010-M2"));
    Assert.assertEquals(D_2010_01_01, parser.parse("2010Q1"));
    Assert.assertEquals(D_2010_01_01, parser.parse("2010-Q1"));
    Assert.assertNull(parser.parse("1234"));
}