'Create a testable, deterministic clock, and a set of
server factory/protocol/transport.'

def setUp(self):

    self.clock = task.Clock()
    wrappedFactory = protocol.ServerFactory()
    wrappedFactory.protocol = SimpleProtocol
    self.factory = TestableTimeoutFactory(self.clock, wrappedFactory, 3)
    self.proto = self.factory.buildProtocol(address.IPv4Address('TCP', '127.0.0.1', 12345))
    self.transport = StringTransportWithDisconnection()
    self.transport.protocol = self.proto
    self.proto.makeConnection(self.transport)
