@Test(expected = NoSuchElementException.class)
public void should_throw_NoSuchElementException_when_finding_inexistant_asset() throws Exception {

    Page page = aPage().withId("page-id").build();
    Asset asset = aFilledAsset(page);
    pagesPath.resolve(asset.getName());
    temporaryFolder.newFilePath(asset.getName());
    when(pageRepository.resolvePathFolder("page-id")).thenReturn(pagesPath);
    when(pageRepository.get("page-id")).thenReturn(aPage().withAsset(asset).build());
    assetRepository.findAssetPath("page-id", "inexistant.js", AssetType.JAVASCRIPT);
}