def METHOD_NAME(live_eventhub, uamqp_transport):
    credential = AzureNamedKeyCredential(live_eventhub['key_name'], live_eventhub['access_key'])
    consumer_client = EventHubConsumerClient(fully_qualified_namespace=live_eventhub['hostname'],
                                             eventhub_name=live_eventhub['event_hub'],
                                             consumer_group='$default',
                                             credential=credential,
                                             user_agent='customized information',
                                             auth_timeout=30,
                                             uamqp_transport=uamqp_transport)
    assert consumer_client.get_eventhub_properties() is not None
    credential.update("foo", "bar")
    with pytest.raises(Exception):
        consumer_client.get_eventhub_properties()
    credential.update(live_eventhub['key_name'], live_eventhub['access_key'])
    assert consumer_client.get_eventhub_properties() is not None