### Question:
FileUtils { public static String createBackupFilePath(File file) { String filename = "backup_" + Files.getNameWithoutExtension(file.getName()) + "_" + createCurrentTimeString() + "." + Files.getFileExtension(file.getName()); return makePath(file.getParent(), filename); } private  FileUtils(); static boolean copyFileFromResource(File destinationFile, String resourcePath); static boolean createDirectory(File dir); static InputStream getResourceFromJar(String path); static void purgeDirectory(File directory); static void delete(File file); static void create(File file); static String makePath(String... elements); static String createCurrentTimeString(); static String createBackupFilePath(File file);  }### Answer:
@Test public void shouldCreateBackupFile() { File file = new File("some/folders/config.yml"); String backupFile = FileUtils.createBackupFilePath(file); String folders = String.join(File.separator,"some", "folders", "").replace("\\", "\\\\"); assertThat(backupFile, matchesPattern(folders + "backup_config_" + BACKUP_TIMESTAMP_PATTERN + "\\.yml")); }