Why can't I pass the test when I remove a cat with this code:
Iterator<Cat> iterator = cats.iterator();
        while (iterator.hasNext()) {
            Cat cat = iterator.next();
            if (cat.name.equals("Gringasho"))
                iterator.remove();
        }
But when I use a for each loop it passed the test.