@Test(expectedExceptions = ApplicationException.class)
public void testGetStringFromStreamShouldThrowApplicationException() throws ApplicationException, IOException {

    //GIVEN
    given(inputStreamMock.available()).willThrow(new IOException());
    //WHEN
    underTest.getStringFromStream(inputStreamMock);
    //THEN it should throws ApplicationException
}