@Test
public void testNextValue() {

    // zaleznosci
    ValueHolder h1 = new StringHolder("a");
    ValueHolder h2 = new NumberHolder(BigDecimal.ONE);
    ValueHolder h3 = new IntegerHolder(100L);
    // dane testowe
    Object[] values = {h1, h2, h3};
    // testowany obiekt
    MultiValue mv = new DefaultMultiValue(values);
    // oczekiwane wartosci
    assertSame(h1, mv.nextHolder());
    assertSame(h2, mv.nextHolder());
    assertSame(h3, mv.nextHolder());
}