TransparentMergedResult implements MergedResult { @Override public Object getCalendarValue(final int columnIndex, final Class<?> type, final Calendar calendar) throws SQLException { return queryResult.getCalendarValue(columnIndex, type, calendar); }  @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 assertGetCalendarValue() throws SQLException { QueryResult queryResult = mock(QueryResult.class); when(queryResult.getCalendarValue(1, Date.class, null)).thenReturn(new Date(0L)); TransparentMergedResult actual = new TransparentMergedResult(queryResult); assertThat(actual.getCalendarValue(1, Date.class, null), is(new Date(0L))); }