def METHOD_NAME(self):
    """
    Test get_username method when the first username candidate is available
    """
    details = {
        "username": 'invalid'
    }
    __, strategy = self.get_request_and_strategy()
    final_username = pipeline.get_username(strategy, details, self.provider.backend_class())
    assert final_username['username'] == 'invalid'