'Ensure that a twistd plugin gets used in appropriate ways: it
is passed its Options instance, and the service it returns is
added to the application.'

def test_applicationRunnerGetsCorrectApplication(self):

    arunner = CrippledApplicationRunner(self.config)
    arunner.run()
    self.assertIs(self.serviceMaker.options, self.config.subOptions, 'ServiceMaker.makeService    needs    to    be    passed    the    correct    sub    Command    object.')
    self.assertIs(self.serviceMaker.service, service.IService(arunner.application).services[0], "ServiceMaker.makeService's    result    needs    to    be    set    as    a    child    of    the    Application.")
