### Question:
ReportLoader { public List<String> listReportFiles(String host) { File hostDir = new File(reportDir, host); if (!hostDir.exists()) { return new ArrayList<String>(); } List<String> list = new ArrayList<String>(); for (File file : hostDir.listFiles()) { if (file.isFile() && file.getName().endsWith(".yaml")) { list.add(file.getName()); } } Collections.sort(list); return list; }  List<String> listReportFiles(String host); String getLatestReportFile(String host); Map<String, Object> loadLatestReport(String host); @SuppressWarnings("unchecked") Map<String, Object> loadReport(String host, String reportFile); void deleteReportFiles(String host); Long getLastModified(String host, String reportFile); void setReportDir(File reportDir);  }### Answer:
@Test @Ignore public void testListReportFiles() { List<String> files = reportLoader.listReportFiles("test"); assertEquals(3, files.size()); assertEquals(true, files.contains("test.yaml")); }