def test_get_share_gateway(self):
        """Test the get_share_gateway method of a StorageUserGateway."""
        vgw = self.user._gateway.get_share_gateway(self.r_share.id)
        self.assertEqual(vgw.user, self.user)
        self.assertEqual(vgw.owner.id, self.sharer.id)
        self.assertEqual(vgw.root_id, self.r_share.subtree.id)