def METHOD_NAME(idProviderType, idProviderName, issuer, username, group, scope, audience, expectedValue):
    """Test getCachedKey"""
    # Prepare IdP
    idProviderClient = idProviderType()
    idProviderClient.name = idProviderName
    idProviderClient.issuer = issuer
    result = getCachedKey(idProviderClient, username, group, scope, audience)
    assert result == expectedValue