def METHOD_NAME(self, mocked_env_eval, mocked_hostname, mocked_mp,
                    mocked_reg_close, mocked_reg_put, mocked_reg_init,
                    mocked_init):
    sched = AgentSchedulingComponent(cfg=None, session=None)
    sched._configure          = mock.Mock()
    sched._schedule_tasks     = mock.Mock()
    sched._log                = mock.Mock()
    sched._prof               = mock.Mock()
    sched.slot_status         = mock.Mock()
    sched.work                = mock.Mock()
    sched.unschedule_cb       = mock.Mock()
    sched.register_input      = mock.Mock()
    sched.register_subscriber = mock.Mock()
    sched.nodes               = []
    sched._partitions         = {}
    for c in self._test_cases['initialize']:
        def _mock_get(_c, name):
            return _c['registry'][name]
        from functools import partial
        mock_get   = partial(_mock_get, c)
        sched._cfg = ru.Config(from_dict=c['config'])
        with mock.patch.object(ru.zmq.RegistryClient, 'get', mock_get):
            if 'RuntimeError' in c['result']:
                with self.assertRaises(RuntimeError):
                    sched.initialize()
            else:
                sched.initialize()
                self.assertEqual(sched.nodes, c['result'])
        return