StubConfigPathProvider { public List<String> getConfigPathsFromCache(final String cachePath) { List<String> resultPaths = new ArrayList<>(); File folder = new File(cachePath); folder = folder.getAbsoluteFile(); for (File file : fileUtils.listFilesWithFilter(folder, "^[1-9]([0-9]*)_stubConfig.xml$")) { resultPaths.add(file.getPath()); } return resultPaths; }  List<String> getConfigPathsFromCache(final String cachePath); List<String> getConfigPathsFromSpecificFolder(final String sourceFolderPath, final String pattern);  }
@Test public void testGetConfigPathsFromCache() { List<String> result = underTest.getConfigPathsFromCache("Test"); verify(fileUtils).listFilesWithFilter(Mockito.any(File.class), Mockito.anyString()); Assert.assertEquals(result, expectedFilePaths); }