US military personnel swear allegiance to the Constitution, not the President. Has there ever been a case of a high-ranking military official who has contravened or ignored a command from a President because they determined it to be unconstitutional?