title: How to write JUnit test for API that copies directory to directory
body: <p>I just want to write a JUnit test case that will just test whether my below code has successfully copied the directory to new directory.</p>
  
  <pre><code>File origPath = new File("/sourceDir/");
  
  File newPath = new File("/destDir/");
  
  try {
      FileUtils.copyDirectory(origPath, newPath);
      } catch (Throwable e) {
  
      }
  </code></pre>
  
  <p>Please suggest, how I can write a JUnit test or mock to test the above code. </p>