public virtual void TestToShorterString()
        {
            ArrayCoreMap a = new ArrayCoreMap();

            a.Set(typeof(CoreAnnotations.TextAnnotation), "Australia");
            a.Set(typeof(CoreAnnotations.NamedEntityTagAnnotation), "LOCATION");
            a.Set(typeof(CoreAnnotations.BeforeAnnotation), "  ");
            a.Set(typeof(CoreAnnotations.PartOfSpeechAnnotation), "NNP");
            a.Set(typeof(CoreAnnotations.ShapeAnnotation), "Xx");
            NUnit.Framework.Assert.AreEqual("Incorrect toShorterString()", "[Text=Australia NamedEntityTag=LOCATION]", a.ToShorterString("Text", "NamedEntityTag"));
            NUnit.Framework.Assert.AreEqual("Incorrect toShorterString()", "[Text=Australia]", a.ToShorterString("Text"));
            NUnit.Framework.Assert.AreEqual("Incorrect toShorterString()", "[Text=Australia NamedEntityTag=LOCATION Before=   PartOfSpeech=NNP Shape=Xx]", a.ToShorterString());
        }