@Test
public void testNextDate() {

    // zaleznosci
    Date v1 = new Date();
    BigDecimal v2 = BigDecimal.ONE;
    Long v3 = 100L;
    ValueHolder h1 = new DateHolder(v1);
    ValueHolder h2 = new NumberHolder(v2);
    ValueHolder h3 = new IntegerHolder(v3);
    // testowany obiekt
    MultiValue mv = new DefaultMultiValue(new Object[]{h1, h2, h3});
    // oczekiwane wartosci
    assertEquals(v1, mv.nextDate());
    assertEquals(v2, mv.nextBigDecimal());
    assertEquals(v3, mv.nextLong());
}