TransparentMergedResult implements MergedResult { @Override public Object getValue(final int columnIndex, final Class<?> type) throws SQLException { return queryResult.getValue(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 assertGetValue() throws SQLException { QueryResult queryResult = mock(QueryResult.class); when(queryResult.getValue(1, Object.class)).thenReturn("1"); TransparentMergedResult actual = new TransparentMergedResult(queryResult); assertThat(actual.getValue(1, Object.class).toString(), is("1")); }