The Decision To Ally: a Theory and Test