### Question:
RetrofitOutputResource implements OutputResource { @Override public InputStream getStream() throws IOException { return mResponse.byteStream(); } RetrofitOutputResource(ResponseBody input); @Override String getMimeType(); @Override long getLength(); @Override InputStream getStream();  }### Answer:
@Test public void shouldDelegateInputStream() throws IOException { when(mTypedInput.byteStream()).thenReturn(input); objectUnderTest.getStream(); verify(mTypedInput, times(1)).byteStream(); }