def test_stop_iteration(self):
        """
        Test that StopIteration is raised.

        @raise AssertionError: If the test fails.
        """
        counter = self.counter_class(0)
        with self.assertRaises(StopIteration):
            counter.__next__()

        Test that StopIteration is raised.

        @raise AssertionError: If the test fails.
        
tests/behavioral_tests/test_iterator.py