I don't find the "hasItem("url")"... Anyway, I think assertTrue is enough here. The code speaks for itself