'``ControlServiceLocator.logger`` is a property that returns the
``logger`` attribute of the ``ControlAMPService`` supplied to its
initialiser.'

@validate_logging(None)
def test_logger(self, logger):

    fake_control_amp_service = build_control_amp_service(self)
    self.patch(fake_control_amp_service, 'logger', logger)
    reactor = Clock()
    protocol = ControlAMP(reactor, fake_control_amp_service)
    locator = ControlServiceLocator(reactor=reactor, control_amp_service=fake_control_amp_service, timeout=timeout_for_protocol(reactor, protocol))
    self.assertIs(logger, locator.logger)
