I am trying to add a unit test case which involves this code:
try(InputStream zippedInputStream = attachmentReader.getPayloadStream(dP)){
<some code>
} catch(Exception t) {
Throwables.propagate(t);
}
Please help me in writing a mockito for this.