@Test
public void should_throw_exception_when_artefact_to_export_is_not_found() throws Exception {

    NotFoundException cause = new NotFoundException("Page not found");
    when(pageService.get("unknown-id")).thenThrow(cause);
    exception.expect(ExportException.class);
    exception.expectCause(is(cause));
    exporter.handleFileExport("unknown-id", response);
}