@Test
public void should_findAssetInPath_asset() throws Exception {

    Page page = aPage().withId("page-id").build();
    write(pagesPath.resolve("file1.css"), "<style>.maclass1{}</style>".getBytes());
    write(pagesPath.resolve("file2.css"), "<style>.maclass2{}</style>".getBytes());
    List<Asset> assets = assetRepository.findAssetInPath(page, AssetType.CSS, pagesPath);
    assertThat(assets).hasSize(2);
    assertThat(assets).extracting("name").contains("file1.css", "file2.css");
}