@Test(expected = RuntimeException.class)
public void testNewInstance_instantiationException() {

    // This generates an InstantiationException because AnomalyThresholds lacks a noarg constructor.
    ReflectionUtil.newInstance(AnomalyThresholds.class);
}