def test_handle_node_change_from_share(self):
        """Test the handle_node_change."""
        self.setup_shares()
        node = StorageObject.objects.get(id=self.d3.id)
        user1 = make_storage_user(username=self.user1.username)
        share = user1.get_share(self.share1.id)
        vgw = ReadWriteVolumeGateway(
            user1, share=share, notifier=self.dummy_notifier)
        with fsync_commit():
            vgw.handle_node_change(node)

        self.assertIn(VolumeNewGeneration(self.user.id, None,
                                          node.generation, vgw.session_id),
                      self.dummy_notifier.notifications)
        self.assertIn(VolumeNewGeneration(self.user3.id, self.share3.id,
                                          node.generation, vgw.session_id),
                      self.dummy_notifier.notifications)
        self.assertIn(VolumeNewGeneration(self.user2.id, self.share2.id,
                                          node.generation, vgw.session_id),
                      self.dummy_notifier.notifications)
        self.assertIn(VolumeNewGeneration(self.user1.id, self.share1.id,
                                          node.generation, vgw.session_id),
                      self.dummy_notifier.notifications)