def METHOD_NAME(self, user_params, expect_provider_params):
    params = common.TaskParams(
        build_dir="/build",
        context_dir="/context",
        config_file="config.yaml",
        namespace="test-namespace",
        pipeline_run_name="test-pipeline-run",
        user_params=user_params,
        task_result='results',
    )
    src = params.source
    assert isinstance(src, source.GitSource)
    assert src.uri == GIT_URI
    assert src.provider_params == expect_provider_params
    assert src.workdir == "/build"