'L{Agent._getEndpoint} return a L{SSL4ClientEndpoint} when passed a
scheme of C{\'https\'}.'

def test_endpointType(self):

    from twisted.internet.endpoints import _WrapperEndpoint
    endpoint = self.makeEndpoint()
    self.assertIsInstance(endpoint, _WrapperEndpoint)
    self.assertIsInstance(endpoint._wrappedEndpoint, HostnameEndpoint)
