Historically this has happened in the case of the Holy See (1870–1929), Estonia, Latvia and Lithuania (during Soviet annexation), and more recently the State of Palestine at the time of its declaration of independence in 1988.