@Test
public void createClearingDocument() throws IOException {

    File targetFolder = folder.newFolder();
    SW360Release release = SW360TestUtils.mkSW360Release("testRelease");
    release.setOverriddenLicense("overridden");
    Path clearingDocument = generator.createClearingDocument(release, targetFolder.toPath());
    assertThat(Files.exists(clearingDocument)).isTrue();
    assertThat(clearingDocument.getFileName().toString()).isEqualTo(release.getId() + "_clearing.json");
    ObjectMapper mapper = new ObjectMapper();
    mapper.readValue(clearingDocument.toFile(), SW360Release.class);
    String content = String.join("", Files.readAllLines(clearingDocument));
    assertThat(content).contains(release.getDeclaredLicense());
    assertThat(content).contains(release.getObservedLicense());
    assertThat(content).contains(release.getOverriddenLicense());
    System.out.println(content);
}