If it isn't clear, this is a trick to inject additional debugging information into the exception.  That way you can use a loop in a unit test, but still be able to tell exactly what caused the failure.