Actually, I think Prussia and Austria invaded Denmark in 1864, fought a war, and split that province between them in the peace treaty. A bit later, Prussia invaded Austria, got the whole province, and dissolved the North German Confederation. Or something like that.