def METHOD_NAME(self):
    """ENSURE: Failures in async-steps are detected correctly."""
    step_container = SimpleStepContainer()
    with use_step_import_modules(step_container):
        # -- STEP-DEFINITIONS EXAMPLE (as MODULE SNIPPET):
        # VARIANT 1: Use async def step_impl()
        # pylint: disable=import-outside-toplevel, unused-argument
        from behave import when
        from behave.api.async_step import async_run_until_complete
        @when('an async-step raises exception')
        @async_run_until_complete
        async def when_async_step_raises_exception(context):
            # pylint: disable=pointless-statement
            1 / 0   # XFAIL-HERE: Raises ZeroDivisionError
    # pylint: enable=import-outside-toplevel, unused-argument
    # -- RUN ASYNC-STEP: Verify that raised exception is detected.
    context = Context(runner=Runner(config={}))
    with pytest.raises(ZeroDivisionError):
        when_async_step_raises_exception(context)