@Test
public void should_delete_on_folder_all_old_widgets_directives_file() throws Exception {

    File assetsFolder = temporaryFolder.newFolder("maPage", "assets");
    File expectToBeDeletedFile = temporaryFolder.newFile("maPage/assets/widgets-fdsf45741sf.min.js");
    File fragment = temporaryFolder.newFile("maPage/assets/123456.js");
    File expectExistFile = temporaryFolder.newFile("maPage/assets/12345654.json");
    WidgetFileHelper.deleteOldConcatenateFiles(assetsFolder.toPath(), "aa");
    assertThat(expectToBeDeletedFile).doesNotExist();
    assertThat(expectExistFile).exists();
    assertThat(fragment).exists();
}