public virtual void TestDefaultValueWithoutSetting()
        {
            // LUCENE-1805: make sure default get returns null,
            // twice in a row
            DisposableThreadLocal <object> ctl = new DisposableThreadLocal <object>();

            Assert.IsNull(ctl.Get());
        }
        public virtual void TestNullValue()
        {
            // Tests that null can be set as a valid value (LUCENE-1805). this
            // previously failed in get().
            DisposableThreadLocal <object> ctl = new DisposableThreadLocal <object>();

            ctl.Set(null);
            Assert.IsNull(ctl.Get());
        }