@Test
public void readsContentOfEntityStreamAsSAXSource() throws Exception {

    SAXSource saxSource = saxSourceEntityProvider.readFrom(SAXSource.class, null, null, APPLICATION_XML_TYPE, new MultivaluedMapImpl(),
                                                           new ByteArrayInputStream(TEST_XML_CONTENT_BYTES));
    Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(saxSource.getInputSource());
    assertThatXmlDocumentContainsAllExpectedNodes(document);
}