public virtual void TestToShortString()
        {
            ArrayCoreMap foo = new ArrayCoreMap();

            foo.Set(typeof(CoreAnnotations.TextAnnotation), "word");
            foo.Set(typeof(CoreAnnotations.PartOfSpeechAnnotation), "NN");
            NUnit.Framework.Assert.AreEqual("word/NN", foo.ToShortString("Text", "PartOfSpeech"));
            NUnit.Framework.Assert.AreEqual("NN", foo.ToShortString("PartOfSpeech"));
            NUnit.Framework.Assert.AreEqual(string.Empty, foo.ToShortString("Lemma"));
            NUnit.Framework.Assert.AreEqual("word|NN", foo.ToShortString('|', "Text", "PartOfSpeech", "Lemma"));
            foo.Set(typeof(CoreAnnotations.AntecedentAnnotation), "the price of tea");
            NUnit.Framework.Assert.AreEqual("{word/NN/the price of tea}", foo.ToShortString("Text", "PartOfSpeech", "Antecedent"));
        }