    @Test
    public void fetch1() throws Exception {

        Iterator<FetchedData> stream = fetcher.fetch(resources.iterator());
        List<FetchedData> list = new ArrayList<>();
        stream.forEachRemaining(list::add);
        assertEquals(list.size(), resources.size());

        for (FetchedData data : list) {
            if (data.getResource().getUrl().contains("NOT_FOUND")) {
                assertEquals(404, data.getResponseCode());
            } else {
                assertEquals(200, data.getResponseCode());
            }
        }
    }