That's a bit weak: you are only checking that there is at least one warning. Maybe you can check the content. Or should we care?