EvidenceWriter { public static void write(OutputStream outputStream, Evidence evidence) throws RemEvidenceException { EvidenceWriter evidenceWriter = new EvidenceWriter(evidence); evidenceWriter.prepare(); evidenceWriter.write(new StreamResult(outputStream)); } private  EvidenceWriter(Evidence evidence); static void write(OutputStream outputStream, Evidence evidence); static void write(Node node, Evidence evidence);  }
@Test public void eventReasonNotMandatory() throws RemEvidenceException { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); EvidenceWriter.write(outputStream, EvidenceTest.EVIDENCE .eventReason(null)); Assert.assertTrue(outputStream.size() > 0); }