def METHOD_NAME(self):
    action = SampleEventAction()
    action._get_action_log_metadata = lambda x: ''
    logger = MagicMock()
    action.log.info = logger
    action._log_modified_resource(
        {'name': 'rg1', 'type': 'resourcegroups', 'resourceGroup': 'r'}, 'Message')
    action._log_modified_resource(
        {'name': 'r1', 'type': 'none', 'resourceGroup': 'rg2'}, 'Message')
    action._log_modified_resource(
        {'name': 'rg1', 'type': 'resourcegroups', 'resourceGroup': 'r'}, None)
    action._log_modified_resource(
        {'name': 'r1', 'type': 'none', 'resourceGroup': 'rg2'}, None)
    logger.assert_has_calls([
        call("Action 'test' modified resource group 'rg1'. Message", extra=''),
        call("Action 'test' modified 'r1' in resource group 'rg2'. Message", extra=''),
        call("Action 'test' modified resource group 'rg1'. ", extra=''),
        call("Action 'test' modified 'r1' in resource group 'rg2'. ", extra='')
    ])