'L{Agent} wraps its connection creator creator and uses modern TLS APIs.'

def test_contextFactoryType(self):

    endpoint = self.makeEndpoint()
    contextFactory = endpoint._wrapperFactory(None)._connectionCreator
    self.assertIsInstance(contextFactory, ClientTLSOptions)
    self.assertEqual(contextFactory._hostname, u'example.com')
