protected MessageContext getMsgCtx() throws Exception {
MessageContext ctx = new MessageContext();
AxisConfiguration axisConfiguration = new AxisConfiguration();
AxisService axisService = new AxisService("TestService");
axisConfiguration.addService(axisService);
AxisServiceGroup axisServiceGroup = new AxisServiceGroup();
axisConfiguration.addServiceGroup(axisServiceGroup);
ctx.setConfigurationContext(new ConfigurationContext(axisConfiguration));
axisServiceGroup.addService(axisService);
ServiceGroupContext gCtx = ctx.getConfigurationContext().createServiceGroupContext(axisServiceGroup);