@Test
public void testKeepEmptyFile() throws Exception {

    Path file = Files.createTempFile(null, null);
    try (Reporter reporter = new JsonReporter()) {
        StringBuffer buf = new StringBuffer();
        buf.append("{");
        buf.append("\"output\": \"").append(file.toString()).append("\"");
        buf.append(",");
        buf.append("\"keepEmptyFile\": \"").append("false").append("\"");
        buf.append("}");
        reporter.initialize(AnalysisContext.builder()
                .build().copyWithConfiguration(ModelNode.fromJSONString(buf.toString())));
        reporter.report(Report.builder().build());
    } finally {
        assertFalse(file.toFile().exists());
    }
}