@Test
public void testComputeB2() {

    for (int i = 0; i < 10; i++) {
        Complex q2 = random(), f0 = random(), f1 = random(), f2 = random();
        Complex result = f2.minus(f1).plus(q2.times(q2.times(f0.minus(f1)).plus(f2.minus(f1).times(2))));
        assertEquals(result, computeB2(f2, f1, q2, f0), 0);
    }
}