public void SetUp()
        {
            Stream       stream     = GetType().Assembly.GetManifestResourceStream("Tangosol.Resources.s4hc-cache-config.xml");
            IXmlDocument xmlConfig  = XmlHelper.LoadXml(stream);
            IXmlElement  initConfig =
                xmlConfig.FindElement("caching-schemes/remote-cache-scheme/initiator-config");

            initiator = new TcpInitiator
            {
                OperationalContext = new DefaultOperationalContext()
            };
            initiator.Configure(initConfig);
            initiator.RegisterProtocol(CacheServiceProtocol.Instance);
            initiator.RegisterProtocol(NamedCacheProtocol.Instance);
            initiator.Start();
        }
        protected TcpInitiator GetInitiator()
        {
            var initiator = new TcpInitiator
            {
                OperationalContext = new DefaultOperationalContext()
            };

            Stream       stream     = GetType().Assembly.GetManifestResourceStream("Tangosol.Resources.s4hc-cache-config.xml");
            IXmlDocument xmlConfig  = XmlHelper.LoadXml(stream);
            IXmlElement  initConfig =
                xmlConfig.FindElement("caching-schemes/remote-cache-scheme/initiator-config");

            initiator.Configure(initConfig);
            initiator.RegisterProtocol(CacheServiceProtocol.Instance);
            initiator.RegisterProtocol(NamedCacheProtocol.Instance);
            initiator.Start();

            convToBinary.Serializer   = initiator.InternalChannel.Serializer;
            convFromBinary.Serializer = initiator.InternalChannel.Serializer;

            return(initiator);
        }