@Test
public void testCopyFile() {

  try {
    final VulasConfiguration cfg = new VulasConfiguration();
    final Path tmp_dir = cfg.getTmpDir();
    final Path source_file = Paths.get("./src/test/resources/Outer.jar");
    final Path target_file = FileUtil.copyFile(source_file, tmp_dir);
    assertEquals(
        FileUtil.getDigest(source_file.toFile(), DigestAlgorithm.SHA1),
        FileUtil.getDigest(target_file.toFile(), DigestAlgorithm.SHA1));
  } catch (IOException e) {
    e.printStackTrace();
    assertEquals(true, false);
  }
}