@Override
    public T next() {
        return items.get(Math.abs(index.getAndIncrement() % items.size()));
    }
@Test
    void testNext() {
        String item1 = "item1";
        String item2 = "item2";
        GenericPoller<String> poller = new GenericPoller<>(Arrays.asList(item1, item2));
        assertEquals(item1, poller.next());
        assertEquals(item2, poller.next());
        assertEquals(item1, poller.next());
    }