@Test
public void should_print_to_output_stream() throws Exception {

  reporter.execute("someproject", new Date(), new ArrayList<>(), result, key -> RULE_DESCRIPTION);
  String output = new String(stream.toByteArray());
  assertThat(output).contains("{\"issues\":[]");
}