TransmissionRequestFactory extends Traceable { public TransmissionMessage newInstance(InputStream inputStream) throws IOException, OxalisContentException { return newInstance(inputStream, Tag.NONE); } @Inject  TransmissionRequestFactory(ContentDetector contentDetector, ContentWrapper contentWrapper,
                                      TagGenerator tagGenerator, HeaderParser headerParser, Tracer tracer); TransmissionMessage newInstance(InputStream inputStream); TransmissionMessage newInstance(InputStream inputStream, Tag tag); TransmissionMessage newInstance(InputStream inputStream, Span root); TransmissionMessage newInstance(InputStream inputStream, Tag tag, Span root);  }
@Test public void simple() throws Exception { MockLookupModule.resetService(); TransmissionMessage transmissionMessage; try (InputStream inputStream = getClass().getResourceAsStream("/simple-sbd.xml")) { transmissionMessage = transmissionRequestFactory.newInstance(inputStream); } Assert.assertNotNull(transmissionMessage.getHeader()); }