@Test
public void should_delete_files_if_old_files_exists() throws Exception {

    File assetsFolder = temporaryFolder.newFolder("maPage", "assets");
    File expectFileDeleted = temporaryFolder.newFile("maPage/assets/widgets-4576.min.js");
    File expectFileAlreadyExist = temporaryFolder.newFile("maPage/assets/widgets-1z2a3456.min.js");
    WidgetFileHelper.deleteOldConcatenateFiles(assetsFolder.toPath(), "1z2a3456");
    assertThat(expectFileDeleted).doesNotExist();
    assertThat(expectFileAlreadyExist).exists();
}