Writing a test condition to evaluate main loop (integration-style).