@Test
public void should_delete_on_root_folder_all_old_widgets_directives_file() throws Exception {

    File assetsFolder = temporaryFolder.newFolder("myFragmentId");
    File fragmentJS = temporaryFolder.newFile("myFragmentId/myFragmentId.js");
    File oldConcatDirectiveFile = temporaryFolder.newFile("myFragmentId/widgets-11111.min.js");
    File descriptorFile = temporaryFolder.newFile("myFragmentId/myFragmentId.json");
    WidgetFileHelper.deleteOldConcatenateFiles(assetsFolder.toPath(), "123");
    assertThat(fragmentJS).exists();
    assertThat(descriptorFile).exists();
    assertThat(oldConcatDirectiveFile).doesNotExist();
}