@Test
public void testUndeploy() throws Exception
{
final String domainOriginal = "TEST_DOMAIN_1";
final SedaService service = new SedaService(muleContext);
service.setName("TEST_SERVICE");
SingletonObjectFactory factory = new SingletonObjectFactory(Object.class);
final DefaultJavaComponent component = new DefaultJavaComponent(factory);
component.setMuleContext(muleContext);
service.setComponent(component);
ThreadingProfile defaultThreadingProfile = ThreadingProfile.DEFAULT_THREADING_PROFILE;
defaultThreadingProfile.setMuleContext(muleContext);
service.setThreadingProfile(defaultThreadingProfile);
SedaModel model = new SedaModel();
model.setMuleContext(muleContext);
service.setModel(model);
muleContext.getRegistry().registerModel(model);
muleContext.getRegistry().registerService(service);
muleContext.start();
final ServiceService jmxService = new ServiceService("TEST_SERVICE", muleContext);