@Test
public void testCopy() throws Exception {

  File srcFile = temp.newFile();
  File destFile = new File(srcFile.getParentFile(), "copied_file");
  FileWriter writer = new FileWriter(srcFile);
  writer.write("Hello World!!!!!");
  writer.close();
  ShellCommandUtil.Result result = ShellCommandUtil.copyFile(srcFile.getAbsolutePath(), destFile.getAbsolutePath(), false, false);
  Assert.assertTrue(result.isSuccessful());
  Assert.assertTrue(destFile.exists());
  Assert.assertTrue(destFile.length() > 0);
  Assert.assertEquals(destFile.length(), srcFile.length());
}