### Question:
InputDataFinder { public File[] getAvailableFiles(boolean dir) throws UnsupportedEncodingException { String pathToFolder = ""; try { pathToFolder = Thread.currentThread().getContextClassLoader().getResource(Constants.INPUTDATA_RESOURCE_NAME).getPath(); } catch (NullPointerException e) { return new File[]{}; } return retrieveCsvTsvFiles(pathToFolder, dir); }  File[] getAvailableFiles(boolean dir); String getFileDirectory();  }### Answer:
@Test public void testRetrieveAllFiles() throws IOException, ClassNotFoundException { File[] actualDirFiles = inputDataFinder.getAvailableFiles(true); File[] actualFiles = inputDataFinder.getAvailableFiles(false); assertEquals(10, actualDirFiles.length); assertEquals(9, actualFiles.length); }