@Test(expected = NotFoundException.class)
public void should_throw_NotFoundException_when_reading_inexisting_page() throws Exception {

    Page page = aPage().withId("page-id").build();
    Asset asset = aFilledAsset(page);
    when(pageRepository.resolvePathFolder("page-id")).thenReturn(pagesPath);
    when(pageRepository.get(asset.getComponentId())).thenReturn(page);
    assetRepository.readAllBytes(asset);
}