### Question:
Group extends Item { @Modifies( "items" ) public void setItemsAsString(String items) { this.items.clear(); if (items != null) { StringTokenizer tok = new StringTokenizer(items,COMMA_SEPARATOR); while (tok.hasMoreTokens()) { this.items.add(tok.nextToken()); } } } Group();  Group(String type);  Group(String type, String label); String getLabel(); void setLabel(String label); String[] getItems(); List<String> getItemList(); @Modifies( "items" ) void setItems(String[] items); @Modifies( "items" ) void addItem(String itemId); @Modifies( "items" ) void insertItem(String itemId, String beforeItemId); @Modifies( "items" ) void appendItem(String itemId, String afterItemId); @Modifies( "items" ) int removeItem(String itemId); @Modifies( "items" ) void setItems(Object[] items); String getItemsAsString(); @Modifies( "items" ) void setItemsAsString(String items); @Override String toString(); @Modifies( { "presentationStyles", "stylesList" } ) void addPresentationStyle(String presentationStyle); @Modifies( { "presentationStyles", "stylesList" } ) void removePresentationStyle(String presentationStyle); static final String COMMA_SEPARATOR; }### Answer:
@SuppressWarnings("deprecation") @Test public void testSetItemsAsString() { Group group = new Group(); group.setItemsAsString("a,b,c"); assertArrayEquals(new String[] { "a", "b", "c" }, group.getItems()); assertEquals("a,b,c", group.getItemsAsString()); }