@Test
public void should_return_list_of_asset_used_by_one_page() throws Exception {

    Page page = aPage().withAsset(anAsset().withName("myfile.js").withType(AssetType.JAVASCRIPT).build()).build();
    Set<Asset> assets = assetVisitor.visit(page);
    assertThat(assets).extracting("name").containsOnlyOnce("myfile.js");
}