// For testing purposes, an overflow triggers an application exception AddNumbersHandlerPortType
// For testing purposes, an underflow triggers an NPE.
if (sum > Integer.MAX_VALUE) {
TestLogger.logger.debug("Overflow detected. Throwing AddNumbersHandlerFault");
AddNumbersHandlerFault faultInfo = new AddNumbersHandlerFault();
faultInfo.setFaultInfo("overflow");
faultInfo.setMessage("overflow");
throw new AddNumbersHandlerFault_Exception("overflow", faultInfo);
} else if (sum < Integer.MIN_VALUE) {
TestLogger.logger.debug("Underflow detected. Throwing NullPointerException");
throw new NullPointerException("underflow");
}