def METHOD_NAME(self):
    self.service.config = {
        'generic_command_config': {
            'shell_commands': [
                {'name': 'test_1', 'command': 'nonexistent/command foo'},
            ],
        },
    }
    table = get_shell_commands_from_config(self.service.config)
    func_1 = table['test_1']
    try:
        asyncio.get_event_loop().run_until_complete(
            func_1(mock.Mock()),
        )
        self.fail('An exception should have been raised')
    except FileNotFoundError:
        pass