def METHOD_NAME(
    self, decode_id_mock, get_kv_command_mock, mock_g
):
    mock_g.user = security_manager.find_user("admin")
    app.config["EXPLORE_FORM_DATA_CACHE_CONFIG"] = {
        "REFRESH_TIMEOUT_ON_RETRIEVAL": True
    }
    dataset = (
        db.session.query(SqlaTable).filter_by(table_name="dummy_sql_table").first()
    )
    slice = db.session.query(Slice).filter_by(slice_name="slice_name").first()
    datasource_string = f"{dataset.id}__{DatasourceType.TABLE}"
    decode_id_mock.return_value = "123456"
    get_kv_command_mock.return_value = {
        "chartId": slice.id,
        "datasetId": dataset.id,
        "datasource": datasource_string,
        "state": {
            "formData": {"datasource": datasource_string, "slice_id": slice.id}
        },
    }
    get_command = GetExplorePermalinkCommand("thisisallmocked")
    cache_data = get_command.run()
    assert cache_data.get("datasource") == datasource_string