def METHOD_NAME(clientName, expectedResult, expectedIssuer, expectedClientId, expectedClientSecret):
    """Test getIdProvider"""
    setupConfig(config)
    result = idps.getIdProvider(clientName)
    assert result["OK"] == expectedResult["OK"]
    if not result["OK"]:
        assert expectedResult["Message"] in result["Message"]
    else:
        idProvider = result["Value"]
        assert expectedIssuer in idProvider.server_metadata_url
        if expectedClientId:
            assert idProvider.client_id == expectedClientId
        else:
            assert idProvider.client_secret is None
        if expectedClientSecret:
            assert idProvider.client_secret == expectedClientSecret
        else:
            assert idProvider.client_secret is None