Many military analysts have assumed that any battle over Taiwan would be localized , with both China and the United States taking care to ensure that it would not expand into a general war between the two powers .