@@ -0,0 +1,1929 @@
+/*%0A * Copyright 2013 SFB 632.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage annis.service.objects;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collection;%0Aimport java.util.List;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A/**%0A *%0A * @author Benjamin Wei%C3%9Fenfels %3Cb.pixeldrama@gmail.com%3E%0A */%0Apublic class AnnisAttributeTest%0A%7B%0A%0A  private final Logger log = LoggerFactory.getLogger(AnnisAttributeTest.class);%0A%0A  /**%0A   * Test of getValueSet method, of class AnnisAttribute.%0A   */%0A  @Test%0A  public void testGetValueSet()%0A  %7B%0A    List%3CString%3E values1 = new ArrayList%3CString%3E();%0A    List%3CString%3E values2 = new ArrayList%3CString%3E();%0A%0A    values1.add(%22acc-ggr%22);%0A    values1.add(%22Idiom%22);%0A    values1.add(%22idiom%22);%0A    values1.add(%22Ne1%22);%0A    values1.add(%22New%22);%0A    values1.add(%22new%22);%0A    values1.add(%22New1%22);%0A    values1.add(%22z%22);%0A%0A    values2.add(%22z%22);%0A    values2.add(%22Idiom%22);%0A    values2.add(%22acc-ggr%22);%0A    values2.add(%22idiom%22);%0A    values2.add(%22new%22);%0A    values2.add(%22New%22);%0A    values2.add(%22New1%22);%0A    values2.add(%22Ne1%22);%0A%0A%0A    AnnisAttribute instance = new AnnisAttribute();%0A    instance.setValueSet(values2);%0A    Collection%3CString%3E result = instance.getValueSet();%0A%0A    int i = 0;%0A    for (String v : result)%0A    %7B%0A      log.info(%22compare %7B%7D %7B%7D%22, v, values1.get(i));%0A      assertEquals(v, values1.get(i));%0A      i++;%0A    %7D%0A  %7D%0A%7D

Add test for case insensitive sorted value sets in AnnisAttribute.