@Test
public void should_execute_export_steps() throws Exception {

    FakeStep fakeStep1 = new FakeStep("This is some content", "resources/file1.json");
    FakeStep fakeStep2 = new FakeStep("This is another content", "resources/deep/file2.json");
    Exporter<Page> exporter = new Exporter<>(pageRepository, pageService, fakeStep1, fakeStep2);
    Page page = create(aPage().build());
    exporter.handleFileExport(page.getId(), response);
    Path unzipped = unzip(response);
    assertThat(readAllBytes(unzipped.resolve("resources/file1.json"))).isEqualTo("This is some content".getBytes());
    assertThat(readAllBytes(unzipped.resolve("resources/deep/file2.json"))).isEqualTo("This is another content".getBytes());
    deleteDirectory(unzipped.toFile());
}