Trained as a civil engineer at the United States Military Academy , Beauregard served with distinction as an engineer in the Mexican-American War .
Beauregard studied at the United States Military Academy .