@Test
public void testGenericP1M() throws Exception {

    SdmxSource source = new GenericDocFactory().create(load("generic-P1M.xml"));
    assertEquals(3, source.items.size());
    SdmxSeries series;
    TsData data;
    series = (SdmxSeries) source.items.get(0);
    assertEquals(TimeFormat.P1M, series.timeFormat);
    assertEquals("CONSTRUCTION_PERMIT=PE, CONSTRUCTION_TYPE=NR, CONSTRUCTION_GEO=BE, CONSTRUCTION_ITEM=BU, FREQUENCY=M", series.id);
    data = series.data.get();
    assertEquals(new TsDomain(TsFrequency.Monthly, 2013, 6, 13), data.getDomain());
    assertEquals(428, data.get(0), 0);
    assertEquals(385, data.get(12), 0);
}