EvidenceReader { public static Evidence read(Node node) throws RemEvidenceException { return read(new DOMSource(node)); }  static Evidence read(Node node); static Evidence read(InputStream inputStream);  }
@Test(expectedExceptions = RemEvidenceException.class) public void exceptionOnInputStreamError() throws Exception { EvidenceReader.read(Mockito.mock(InputStream.class)); }
@Test(expectedExceptions = RemEvidenceException.class, expectedExceptionsMessageRegExp = "Version .*") public void exceptionOnInvalidVersion() throws Exception { EvidenceReader.read(getClass().getResourceAsStream("/test-version-1.xml")); }
@Test public void readSimpleFile() throws Exception { Evidence evidence = EvidenceReader.read(getClass().getResourceAsStream("/sample-signed-formatted-rem.xml")); Assert.assertFalse(evidence.hasPeppolExtensionValues()); }