def METHOD_NAME(self, mock_agent_properties):
    with patch.dict(Utility.environment['lock_store'], {'url': 'rediscloud', "password": "password", "port": 6999, "db": 5}):
        AgentProcessor.reload(pytest.bot)
        model = AgentProcessor.cache_provider.get(pytest.bot)
        assert model
        assert isinstance(model.lock_store.red, Redis)
        assert model.lock_store.key_prefix == f'{pytest.bot}:lock:'
        assert model.lock_store.red.connection_pool.connection_kwargs == {'db': 5, 'username': None,
                                                                                  'password': 'password',
                                                                                  'socket_timeout': 10,
                                                                                  'encoding': 'utf-8',
                                                                                  'encoding_errors': 'strict',
                                                                                  'decode_responses': False,
                                                                                  'retry_on_timeout': False,
                                                                                  'health_check_interval': 0,
                                                                                  'client_name': None,
                                                                                  'host': 'rediscloud',
                                                                                  'port': 6999,
                                                                                  'socket_connect_timeout': None,
                                                                                  'socket_keepalive': None,
                                                                                  'socket_keepalive_options': None}
    with patch.dict(Utility.environment['lock_store'], {'url': 'rediscloud'}):
        AgentProcessor.reload(pytest.bot)
        model = AgentProcessor.cache_provider.get(pytest.bot)
        assert model
        assert isinstance(model.lock_store.red, Redis)
        assert model.lock_store.key_prefix == f'{pytest.bot}:lock:'
        assert model.lock_store.red.connection_pool.connection_kwargs == {'db': 1, 'username': None,
                                                                                  'password': None,
                                                                                  'socket_timeout': 10,
                                                                                  'encoding': 'utf-8',
                                                                                  'encoding_errors': 'strict',
                                                                                  'decode_responses': False,
                                                                                  'retry_on_timeout': False,
                                                                                  'health_check_interval': 0,
                                                                                  'client_name': None,
                                                                                  'host': 'rediscloud',
                                                                                  'port': 6379,
                                                                                  'socket_connect_timeout': None,
                                                                                  'socket_keepalive': None,
                                                                                  'socket_keepalive_options': None}