### Question:
FileUtil { public static boolean matches(String filename, String[] includes, String[] excludes) { if (excludes != null && excludes.length > 0) for (String s : excludes) if (StringUtils.isNotEmpty(s) && SelectorUtils.match(s, filename, false)) return false; if (includes != null && includes.length > 0) for (String s : includes) if (StringUtils.isNotEmpty(s) && SelectorUtils.match(s, filename, false)) return true; if (includes == null || includes.length == 0) return true; else return false; }  static void writeFile(InputStream in, String filepath); static void writeFile(byte[] in, String filepath); static void writeFile(String text, String filepath); static String readFile(File file); static String readFile(String filePath); static void appendFile(String text, String filepath); static String computeDigest(InputStream is); static String computeDigest(File file); static String computeDigest(String src); static byte[] computeSha1Hash(File file); static byte[] computeSha1Hash(InputStream is); static void copyResource(String resourceName, File out); static long getFolderSize(File folder); static String getDisplaySize(long size, String language); static String getDisplaySizeKB(long size, String language); static boolean matches(String filename, String[] includes, String[] excludes); static boolean matches(String filename, String includes, String excludes); static void writeUTF8(String content, File file, boolean append); static byte[] toByteArray(File file); static byte[] toByteArray(RandomAccessFile input, long start, long length); static byte[] toByteArray(File file, long start, long length); static void copy(File input, File output, long offset); static void replaceInFile(String sourcePath, String token, String newValue); @SuppressWarnings("resource") static void copyFile(File source, File target); static void strongDelete(File file); static boolean isDirEmpty(final Path directory); static void merge(File f1, File f2, File merged); static void merge(List<File> files, File merged); static List<File> split(File file, long chunkSize, File destDir); static long countLines(File file); static boolean isInsideFolder(File folder, File file);  }### Answer:
@Test public void testMatch() throws IOException { Assert.assertTrue(FileUtil.matches("ReleaseNotes.txt", "*.doc,*.txt", "")); }