def METHOD_NAME():
    """
    Verify that authenticate(...) returns the expected results for an invalid
    authentication type
    """
    dummy_kfp_endpoint = "https://localhost:8888"
    dummy_runtime_config_name = "a_kfp_runtime_config"
    dummy_auth_type_str = "NO_SUCH_AUTH_TYPE"
    dummy_auth_parm_1 = None
    dummy_auth_parm_2 = None
    # authentication type is invalid
    with pytest.raises(AuthenticationError) as exc_error:
        KFPAuthenticator().authenticate(
            api_endpoint=dummy_kfp_endpoint,
            auth_type_str=dummy_auth_type_str,
            runtime_config_name=dummy_runtime_config_name,
            auth_parm_1=dummy_auth_parm_1,
            auth_parm_2=dummy_auth_parm_2,
        )
    assert exc_error.value._provider is None
    assert f"Authentication type '{dummy_auth_type_str}' is not supported." in exc_error.value._message