public void GetSaoWithSingletonModeAutowired_SPRNET967()
        {
            // register server by hand to avoid duplicate interfaces
            SPRNET967_SimpleCounterWrapper svr = new SPRNET967_SimpleCounterWrapper(new SimpleCounter(1));

            RemotingServices.Marshal(svr, "RemotedSaoSingletonCounter");

//            object svc = Activator.GetObject(typeof(ISimpleCounter), "tcp://localhost:8005/RemotedSaoSingletonCounter");
//            Assert.IsTrue( svc is IObjectDefinition );
//            Assert.IsTrue( svc is ISimpleCounter );

            IApplicationContext ctx = new XmlApplicationContext("assembly://Spring.Services.Tests/Spring.Data.Spring.Remoting/saoSingleton-autowired.xml");

            ContextRegistry.RegisterContext(ctx);
            SPRNET967_SimpleCounterClient client = (SPRNET967_SimpleCounterClient)ctx.GetObject("counterClient");

            client.Count();
            Assert.AreEqual(2, client.Counter);
        }
		public void GetSaoWithSingletonModeAutowired_SPRNET967()
		{
            // register server by hand to avoid duplicate interfaces
            SPRNET967_SimpleCounterWrapper svr = new SPRNET967_SimpleCounterWrapper( new SimpleCounter(1) );
			RemotingServices.Marshal(svr, "RemotedSaoSingletonCounter");

//            object svc = Activator.GetObject(typeof(ISimpleCounter), "tcp://localhost:8005/RemotedSaoSingletonCounter");
//            Assert.IsTrue( svc is IObjectDefinition );
//            Assert.IsTrue( svc is ISimpleCounter );

            IApplicationContext ctx = new XmlApplicationContext("assembly://Spring.Services.Tests/Spring.Data.Spring.Remoting/saoSingleton-autowired.xml");
            ContextRegistry.RegisterContext(ctx);
            SPRNET967_SimpleCounterClient client = (SPRNET967_SimpleCounterClient) ctx.GetObject("counterClient");
            client.Count();
            Assert.AreEqual(2, client.Counter);
		}