@Test
public void test_computeBound_withAccelerationAndTargetVelocity() {

    // 100 = 0.5 * 0.01 * 3 * 3 + 0.03 * (t - 3)
    long time = Confetto.computeBound(0f, 0f, 0.01f, 3L, 0.03f, -10000, 100);
    assertEquals(3334, time);
    time = Confetto.computeBound(0f, 0f, -0.01f, 3L, -0.03f, -100, 10000);
    assertEquals(3334, time);
    // 100 = 10 + 0.01 * 3 + 0.5 * 0.01 * 3 * 3 + 0.04 * (t - 3)
    time = Confetto.computeBound(10f, 0.01f, 0.01f, 3L, 0.04f, -10000, 100);
    assertEquals(2251, time);
    time = Confetto.computeBound(10f, -0.01f, -0.01f, 3L, -0.04f, -100, 10000);
    assertEquals(2251, time);
}