'Create an L{_IdentityTransferDecoder} with callbacks hooked up so that
calls to them can be inspected.'

def setUp(self):

    self.data = []
    self.finish = []
    self.contentLength = 10
    self.decoder = _IdentityTransferDecoder(self.contentLength, self.data.append, self.finish.append)
