@@ -0,0 +1,1013 @@
+package org.flymine.util;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport java.util.List;%0Aimport java.util.ArrayList;%0A%0A%0Apublic class ListBeanTest extends TestCase%0A%7B%0A    private String s1, s2;%0A    private Integer v1, v2;%0A    private List list;%0A%0A    public ListBeanTest(String arg) %7B%0A        super(arg);%0A    %7D%0A%0A    public void setUp() %7B%0A        s1 = %22s1%22;%0A        s2 = %22s2%22;%0A        v1 = new Integer(101);%0A        v2 = new Integer(102);%0A        list = new ArrayList();%0A        list.add(s1);%0A        list.add(s2);%0A        list.add(v1);%0A        list.add(v2);%0A    %7D%0A%0A    public void testReturnsCorrectList() throws Exception %7B%0A        ListBean lb = new ListBean();%0A        lb.setItems(list);%0A        assertEquals(list, lb.getItems());%0A    %7D%0A%0A    public void testClearsList() throws Exception %7B%0A        ListBean lb = new ListBean();%0A        List list2 = new ArrayList();%0A        list2.add(s1);%0A        list2.add(v1);%0A%0A        lb.setItems(list);%0A        lb.setItems(list2);%0A        assertEquals(list2, lb.getItems());%0A    %7D%0A%7D%0A

test the ListBean getters/setters