### Question:
SmooksResourceConfigurationList { public void add(SmooksResourceConfiguration smooksResourceConfiguration) { AssertArgument.isNotNull(smooksResourceConfiguration, "smooksResourceConfiguration"); String[] selectors = smooksResourceConfiguration.getSelectorPath().getSelector().split(","); for(String selector : selectors) { SmooksResourceConfiguration clone = (SmooksResourceConfiguration) smooksResourceConfiguration.clone(); clone.setSelector(selector.trim()); smooksResourceConfigurations.add(clone); LOGGER.debug("Smooks ResourceConfiguration [" + clone + "] added to list [" + name + "]."); } } SmooksResourceConfigurationList(String name); void add(SmooksResourceConfiguration smooksResourceConfiguration); void addAll(SmooksResourceConfigurationList configList); void add(ProfileSet profileSet); String getName(); boolean isSystemConfigList(); void setSystemConfigList(boolean systemConfigList); boolean isEmpty(); int size(); SmooksResourceConfiguration get(int index); SmooksResourceConfiguration[] getTargetConfigurations(ProfileSet profileSet); List<ProfileSet> getProfiles(); List<SmooksResourceConfiguration> lookupResource(ConfigSearch searchCriteria);  }### Answer:
@Test public void testAdd() { SmooksResourceConfigurationList list = new SmooksResourceConfigurationList("list-name"); assertTrue(list.isEmpty()); list.add(new SmooksResourceConfiguration("*", "a/b.zap")); assertFalse(list.isEmpty()); assertEquals(1, list.size()); assertEquals("a/b.zap", list.get(0).getResource()); list.add(new SmooksResourceConfiguration("*", "c/d.zap")); assertEquals(2, list.size()); assertEquals("c/d.zap", list.get(1).getResource()); }