@Test
public void testNextBigDecimalArray() {

    // zaleznosci
    BigDecimal v0 = BigDecimal.ZERO;
    BigDecimal v1 = BigDecimal.ONE;
    BigDecimal v10 = BigDecimal.TEN;
    NumberHolder h1 = new NumberHolder(v0);
    NumberHolder h2 = new NumberHolder(v1);
    NumberHolder h3 = new NumberHolder(v10);
    // 3 elementy
    ValueHolder[] e1 = {h1, h2};
    ValueHolder[] e2 = {h2, h3};
    // testowany obiekt
    MultiValue mv = new DefaultMultiValue(new Object[]{e1, e2});       // 2 poziomy typu tablicowego
    // oczekiwane wartosci
    assertArrayEquals(new BigDecimal[]{v0, v1}, mv.nextBigDecimalArray());
    assertArrayEquals(new BigDecimal[]{v1, v10}, mv.nextBigDecimalArray());
}