assertEquals(0, actual.size());
assertEquals(5, actual.size());
    public void testGetAutoCompleteCandidates() {        AutoCompleteItems[] itemsData = new AutoCompleteItems[] {                new AutoCompleteItems("robin"),                new AutoCompleteItems("bluejay"),                new AutoCompleteItems("hawk"),                new AutoCompleteItems("harrier"),                new AutoCompleteItems("grayjay")                        };        Collection items = Arrays.asList(itemsData);        Collection actual;        Iterator i;                actual = TapestryUtils.getAutoCompleteCandidates(items, null);        assertEquals(0, actual.size());                actual =  TapestryUtils.getAutoCompleteCandidates(items, "");        assertEquals(0, actual.size());        actual =  TapestryUtils.getAutoCompleteCandidates(items, " ");        assertEquals(0, actual.size());        actual =  TapestryUtils.getAutoCompleteCandidates(items, "n");        assertEquals(0, actual.size());        actual =  TapestryUtils.getAutoCompleteCandidates(items, "r");        assertEquals(1, actual.size());        assertEquals("robin", actual.iterator().next());        actual =  TapestryUtils.getAutoCompleteCandidates(items, "robi");        assertEquals(1, actual.size());        assertEquals("robin", actual.iterator().next());                actual =  TapestryUtils.getAutoCompleteCandidates(items, "robin");        assertEquals(1, actual.size());        assertEquals("robin", actual.iterator().next());        actual =  TapestryUtils.getAutoCompleteCandidates(items, "h");        assertEquals(2, actual.size());        i = actual.iterator();        assertEquals("hawk", i.next());        assertEquals("harrier", i.next());                // multi-value        actual =  TapestryUtils.getAutoCompleteCandidates(items, "peacock");        assertEquals(0, actual.size());        actual =  TapestryUtils.getAutoCompleteCandidates(items, "peacock ");        assertEquals(0, actual.size());                actual =  TapestryUtils.getAutoCompleteCandidates(items, "peacock x");        assertEquals(0, actual.size());        actual =  TapestryUtils.getAutoCompleteCandidates(items, "peacock h");        assertEquals(2, actual.size());        i = actual.iterator();        assertEquals("peacock hawk", i.next());        assertEquals("peacock harrier", i.next());        actual =  TapestryUtils.getAutoCompleteCandidates(items, "bluejay r");        assertEquals(1, actual.size());        i = actual.iterator();        assertEquals("bluejay robin", i.next());    }