@Test
public void testSetToInvalid() {

    final TestSample[] samples = createSampleArray(6);
    MphChlUtils.setToInvalid(samples, false);
    assertEquals(Double.NaN, samples[0].getDouble(), 1e-8);
    assertEquals(0.0, samples[1].getDouble(), 1e-8);
    assertEquals(0.0, samples[2].getDouble(), 1e-8);
    assertEquals(0.0, samples[3].getDouble(), 1e-8);
    assertEquals(0.0, samples[4].getDouble(), 1e-8);
    assertEquals(0.0, samples[4].getDouble(), 1e-8);
}