'If a pool is passed in to L{Agent.usingEndpointFactory} it is used as
the L{Agent} pool.'

def test_endpointFactoryPool(self):

    pool = object()
    agent = client.Agent.usingEndpointFactory(self.reactor, StubEndpointFactory(), pool)
    self.assertIs(pool, agent._pool)
