super.setUp();
if (axisConfig == null) {
InputStream regConfigStream = Thread.currentThread().getContextClassLoader()
.getResourceAsStream("registry.xml");
final InMemoryEmbeddedRegistryService embeddedRegistryService =
new InMemoryEmbeddedRegistryService(regConfigStream);
RegistryCoreServiceComponent component = new RegistryCoreServiceComponent() {
{
setRealmService(embeddedRegistryService.getRealmService());
}
};
component.registerBuiltInHandlers(embeddedRegistryService);
Registry registry = embeddedRegistryService.getConfigSystemRegistry();
Registry governanceRegistry = embeddedRegistryService.getGovernanceSystemRegistry();
SecurityServiceHolder.setRegistryService(embeddedRegistryService);
//create an axisconfig object using an axis2.xml
ConfigurationContext configContext = ConfigurationContextFactory
.createConfigurationContextFromFileSystem(REPO_PATH);