### Question:
FileUtils { public static File[] copy(final File[] from, final File directoryTo, final boolean move) throws Reply550Exception { if (from == null || directoryTo == null) { return null; } File[] to = null; if (createDir(directoryTo)) { to = new File[from.length]; for (int i = 0; i < from.length; i++) { if (from[i].isFile()) { to[i] = copyToDir(from[i], directoryTo, move); } } } return to; } private  FileUtils(); static void close(final Reader stream); static void close(final Writer stream); static void close(final InputStream stream); static void close(final OutputStream stream); static void close(final RandomAccessFile accessFile); static boolean deleteDir(final File directory); static boolean delete(final File file); static File[] copyRecursive(final File from, final File directoryTo,
                                     final boolean move); static File[] copy(final File[] from, final File directoryTo,
                            final boolean move); static boolean createDir(final File directory); static void copy(final File from, final File to, final boolean move,
                          final boolean append); static boolean forceDeleteRecursiveDir(final File directory); static boolean deleteRecursiveDir(final File directory); static boolean fileExist(final String fileName, final String path); static File[] getFiles(final File directory); static void computeGlobalHash(final FilesystemBasedDigest digest,
                                       final File file, final int length); static File[] getFiles(final File directory,
                                final FilenameFilter filter); static long uncompressedBz2File(final File fileIn,
                                         final File fileOut); static long copy(final InputStream from, final OutputStream to); static final int ZERO_COPY_CHUNK_SIZE; }### Answer:
@Test public void copy() throws IOException { generateFiles(); File dirTo = new File(dirSource, "test2"); dirTo.mkdirs(); try { File[] files = FileUtils.copy(new File[] { file1, file2 }, dirTo, true); assertNotNull(files); assertEquals(2, files.length); } catch (Reply550Exception e) { e.printStackTrace(); fail(e.getMessage()); } }