def METHOD_NAME(
    default_category, dynamic_settings, user
):
    user.update_fields = []
    for _ in range(3):
        post_thread(default_category, poster=user)
    middleware = FloodProtectionMiddleware(
        mode=PostingEndpoint.START,
        settings=dynamic_settings,
        user=user,
        user_acl=default_acl,
    )
    assert middleware.use_this_middleware()
    with pytest.raises(PostingInterrupt):
        middleware.interrupt_posting(None)