Excess of loss reinsurance and Gerber's inequality in the Sparre Anderson model