@Test
public void testApplyValue() throws Exception {

    // make sure that we can re-assign the gradient without loosing the original start value.
    // this is to emulate the case when the user changes the simulator controls via the gui
    // and that sends increments for every drag of the slider.
    //
    Number initial = new Integer(15);
    for (int idx = 1; idx < 10; idx++) {
        Number target = new Integer(15 + idx);
        initial = new NumberWithGradient(initial, target, 1);
        log.info("change initial value to " + initial);
    }
    Assert.assertEquals("failed to preserve original start value", 15, initial.intValue());
}