But the City's ability to adapt would be tested by a shock as deep as Brexit.