def test_undelete_volume(self):
        """Test Undelete Volume."""
        vgw = ReadWriteVolumeGateway(self.user)
        d2 = vgw.undelete_volume('recovered')
        d = vgw.make_subdirectory(vgw.get_root().id, 'the dir')
        vgw.delete_node(d.id)
        d2 = vgw.undelete_volume('recovered')
        vgw.delete_node(d2.id, cascade=True)
        vgw.undelete_volume('recovered')