@Test
public void should_get_file_name_of_concatenation_widgets_directives_file_who_was_use_in_page() throws Exception {

    Page page = aPage().build();
    initWidgetsFileWhoUsedInPage(page);
    mockWidgetIdVisitorAndWidgetRepository(page, "pbLabel", "paragraph");
    Path pagePath = temporaryFolder.toPath().resolve("pages").resolve(page.getId());
    String filename = generator.generateAllDirectivesFilesInOne(page, pagePath);
    assertThat(filename).isEqualTo("widgets-f66d6f4cc38b2259ec29fa16e9f171251cd3d346.min.js");
}