}
protected void setUp() throws Exception {
ConfigurationContext configContext = createServerConfigurationContext();
MailServer server = new MailServer(configContext,MailConstants.POP_SERVER_PORT,MailConstants.SMTP_SERVER_PORT);
SimpleMailListener ml = new SimpleMailListener();
ml.init(
configContext,
configContext.getAxisConfiguration().getTransportIn(
new QName(Constants.TRANSPORT_MAIL)));
ml.start();
configContext.getAxisConfiguration().engageModule(new QName(Constants.MODULE_ADDRESSING));
ServiceDescription service =
Utils.createSimpleService(serviceName, Echo.class.getName(), operationName);
configContext.getAxisConfiguration().addService(service);
Utils.resolvePhases(configContext.getAxisConfiguration(), service);