def setUp(self):
        super(UDFReadWriteVolumeGatewayTestCase, self).setUp()
        self.gw = SystemGateway()
        db_user = self.factory.make_user()
        self.user = self.gw.get_user(db_user.id, session_id='QWERTY')
        # make a test file in the database
        self.udf = self.factory.make_user_volume(
            owner=db_user, path='~/thepath/thename')
        udf_dao = DAOUserVolume(self.udf, self.user)
        self.vgw = ReadWriteVolumeGateway(self.user, udf=udf_dao)
        self.root = StorageObject.objects.get(id=self.vgw.get_root().id)