def METHOD_NAME(self):
    def invoke(ep, *args, **kwds):
        return (ep.name, args, kwds)
    em = dispatch.DispatchExtensionManager('stevedore.test.extension',
                                           lambda *args, **kwds: True,
                                           invoke_on_load=True,
                                           invoke_args=('a',),
                                           invoke_kwds={'b': 'B'},
                                           )
    self.assertEqual(len(em.extensions), 2)
    self.assertEqual(set(em.names()), set(['t1', 't2']))
    results = em.map(check_dispatch,
                     invoke,
                     'first',
                     named='named value',
                     )
    expected = [('t2', ('first',), {'named': 'named value'})]
    self.assertEqual(results, expected)