TransparentMergedResult implements MergedResult { @Override public InputStream getInputStream(final int columnIndex, final String type) throws SQLException { return queryResult.getInputStream(columnIndex, type); }  @Override boolean next(); @Override Object getValue(final int columnIndex, final Class<?> type); @Override Object getCalendarValue(final int columnIndex, final Class<?> type, final Calendar calendar); @Override InputStream getInputStream(final int columnIndex, final String type); @Override boolean wasNull();  }
@Test public void assertGetInputStream() throws SQLException { QueryResult queryResult = mock(QueryResult.class); InputStream value = mock(InputStream.class); when(queryResult.getInputStream(1, "Ascii")).thenReturn(value); TransparentMergedResult actual = new TransparentMergedResult(queryResult); assertThat(actual.getInputStream(1, "Ascii"), is(value)); }