'Creates a L{HostnameEndpoint} instance where the hostname is resolved
into a single IPv4 address.'

def createClientEndpoint(self, reactor, clientFactory, **connectArgs):

    expectedAddress = '1.2.3.4'
    address = HostnameAddress('example.com', 80)
    endpoint = endpoints.HostnameEndpoint(deterministicResolvingReactor(reactor, [expectedAddress]), 'example.com', address.port, **connectArgs)
    return (endpoint, (expectedAddress, address.port, clientFactory, connectArgs.get('timeout', 30), connectArgs.get('bindAddress', None)), address)
