def METHOD_NAME(self, session):
    agent = AgentFactory.create()
    params = {'old_param': True}
    executor = ExecutorFactory.create(
        name='old_executor',
        agent=agent,
        parameters_metadata=params
    )
    session.add(executor)
    session.commit()
    executors = [
        {'executor_name': 'new executor', 'args': {'param1': True}}
    ]
    assert update_executors(agent, executors)
    count_executors = Executor.query.filter_by(agent=agent).count()
    assert count_executors == 1
    current_executor = Executor.query.filter_by(agent=agent).first()
    assert current_executor.name == 'new executor'
    assert current_executor.parameters_metadata == {'param1': True}