'Create an L{imap4.IMAP4Client} connected to a L{StringTransport}.'

def setUp(self):

    self.transport = StringTransport()
    self.protocol = imap4.IMAP4Client()
    self.protocol.makeConnection(self.transport)
    self.protocol.dataReceived('*    OK    [IMAP4rev1]\r\n')
