public virtual void TestDrainTo()
        {
            BlockingQueue queue = new BlockingQueue();

            queue.Add(new object());
            queue.Add(new object());
            Collection4 list = new Collection4();

            Assert.AreEqual(2, queue.DrainTo(list));
            Assert.AreEqual(2, list.Size());
            Assert.IsFalse(queue.HasNext());
        }