@Test
public void traverse_many() throws PersistenceException, AecuException {

    List<Resource> results = new ArrayList<>();
    for (int i = 0; i < 1500; i++) {
        results.add(resource);
    }
    when(resolver.findResources(QUERY, TYPE)).thenReturn(results.iterator());
    ForQuery traverser = new ForQuery(QUERY, TYPE);
    traverser.traverse(context, null, actions, output, false);
    verify(action, times(1500)).doAction(resource);
    verify(resolver, times(1)).commit();
}