@Test
public void should_resolveAssetPath() {

    Page page = aPage().withId("page-id").build();
    Asset asset = aFilledAsset(page);
    when(pageRepository.resolvePathFolder("page-id")).thenReturn(pagesPath);
    Path path = assetRepository.resolveAssetPath(asset);
    Assertions.assertThat(path.toUri()).isEqualTo(pagesPath.resolve("assets").resolve("js").resolve(asset.getName()).toUri());
}