@Test
public void readsContentOfEntityStreamAsDOMSource() throws Exception {

    DOMSource domSource = domSourceEntityProvider.readFrom(DOMSource.class, null, null, APPLICATION_XML_TYPE, new MultivaluedMapImpl(),
                                                           new ByteArrayInputStream(TEST_XML_CONTENT_BYTES));
    Node document = domSource.getNode();
    assertThatXmlDocumentContainsAllExpectedNodes(document);
}