MemoryMergedResult implements MergedResult { @Override public final Object getCalendarValue(final int columnIndex, final Class<?> type, final Calendar calendar) { Object result = currentResultSetRow.getCell(columnIndex); wasNull = null == result; return result; } protected  MemoryMergedResult(final T rule, final SchemaMetaData schemaMetaData, final SQLStatementContext sqlStatementContext, final List<QueryResult> queryResults); @Override final boolean next(); @Override final Object getValue(final int columnIndex, final Class<?> type); @Override final Object getCalendarValue(final int columnIndex, final Class<?> type, final Calendar calendar); @Override final InputStream getInputStream(final int columnIndex, final String type); @Override final boolean wasNull();  }
@Test public void assertGetCalendarValue() { when(memoryResultSetRow.getCell(1)).thenReturn(new Date(0L)); assertThat(memoryMergedResult.getCalendarValue(1, Object.class, Calendar.getInstance()), is(new Date(0L))); }