def METHOD_NAME(self):
    cmd = MyTestCommand(self.cli)
    self._register_command(cmd)
    self.parser.add_commands(self.cli_commands, "main")
    name = cmd.aliases[0]
    self.assertTrue(name in self.parser._cmd_usage)
    group, summary = self.parser._cmd_usage[name]
    self.assertEqual(group, 'main')
    self.assertEqual(summary, cmd.summary)
    self.assertEqual(self.parser._cmd_groups, set(['main']))