@Test
public void testMissings() {

    int n = 120;
    DataBlock k = new DataBlock(n);
    k.randomize(0);
    int m = 0;
    for (int i = 0; i < n - 5; i += n / 3) {
        k.set(i, Double.NaN);
        ++m;
    }
    for (int i = n - 5; i < n; ++i) {
        k.set(i, Double.NaN);
        ++m;
    }
    Matrix J = DifferenceStationaryModelHelper.missings(k);
    assertTrue(J.getRowsCount() == n - m);
}