JVoiceXmlConfiguration implements Configuration { Collection<File> getConfigurationFiles(final String root) throws IOException { if (LOGGER.isDebugEnabled()) { LOGGER.debug("looking for configurations '" + root + "'"); } return configurationRepository.getConfigurationFiles(root); } JVoiceXmlConfiguration(); @Override synchronized Collection<T> loadObjects(
            final Class<T> baseClass, final String root); @Override synchronized T loadObject(
            final Class<T> baseClass, final String key); @Override synchronized T loadObject(
            final Class<T> baseClass);  }
@Test public void testGetConfigurationFiles() throws Exception { final JVoiceXmlConfiguration config = new JVoiceXmlConfiguration(); final Collection<File> files = config.getConfigurationFiles("implementation"); final File dir = new File("../org.jvoicexml.config/src/test/resources/config"); final FilenameFilter filter = new FilenameFilter() { @Override public boolean accept(final File dir, final String name) { return name.endsWith("-implementation.xml"); } }; final String[] impls = dir.list(filter); Assert.assertEquals(impls.length, files.size()); }