@Test
public void testCompressShouldReturnByteArrayOutputStream() throws ParserConfigurationException, SAXException {

    //GIVEN
    given(outputStreamFactory.createByteArrayOutputStream()).willReturn(baos);
    given(saxParserFactory.newSAXParser()).willReturn(saxParser);
    //WHEN
    ByteArrayOutputStream actual = underTest.compress(inputStream);
    //THEN
    Assert.assertEquals(actual, baos);
}