@Test
public void should_list_all_widgets_except_container_used_in_page() throws Exception {

    Page page = aPage().with(aContainer().build()).build();
    mockWidgetIdVisitorAndWidgetRepository(page, "pbLabel", "paragraph", "pbContainer");
    List<Path> widgesFiles = generator.getWidgetsFilesUsedInPage(page);
    assertThat(widgesFiles).containsOnly(temporaryFolder.toPath().resolve("pbLabel").resolve("pbLabel.js"), temporaryFolder.toPath().resolve("paragraph")
            .resolve("paragraph.js"));
    assertThat(widgesFiles).doesNotContain(temporaryFolder.toPath().resolve("pbContainer").resolve("pbContainer.js"));
}