public virtual void TestSortedDocValuesField() { SortedDocValues dv = reader.GetSortedDocValues(SORTED_DV_FIELD); int maxDoc = reader.MaxDoc; BytesRef bytes = new BytesRef(); for (int i = 0; i < maxDoc; i++) { dv.Get(i, bytes); assertEquals("incorrect sorted DocValues for doc " + i, sortedValues[i].ToString(), bytes.Utf8ToString()); } }