@Test
    public void testSet() {
        stems.add("a");
        stems.add("b");
        stems.add("c");
        stems.add("d");
        assertEquals("a", stems.set(2, "a"));
        assertEquals("c", stems.get(2));
        assertEquals("c", stems.set(2, "z"));
        assertEquals("z", stems.get(2));
    }
Functional testing of StemList.

@author Steinar Knutsen
linguistics/src/test/java/com/yahoo/language/process/StemListTestCase.java