@Test
public void testNanObs() throws URISyntaxException, IOException {

    Path file = getResource("NanObs");
    for (TswFactory factory : asList(oldFactory, newFactory)) {
        List<TswSeries> items = factory.loadFile(file);
        assertEquals(1, items.size());
        TswSeries single = items.get(0);
        assertEquals("ipiSPAIN", single.name);
        assertEquals(new TsDomain(TsFrequency.Monthly, 1983, 1, 158), single.data.get().getDomain());
        assertEquals(158 - 4, single.data.get().getObsCount());
        assertEquals(Double.NaN, single.data.get().get(4), 0);
    }
}