### Question:
ShardingResultSet extends AbstractResultSetAdapter { @Override public boolean next() throws SQLException { return mergeResultSet.next(); } ShardingResultSet(final List<ResultSet> resultSets, final ResultSetMerger mergeResultSet); @Override boolean next(); @Override // TODO boolean wasNull(); @Override boolean getBoolean(final int columnIndex); @Override boolean getBoolean(final String columnLabel); @Override byte getByte(final int columnIndex); @Override byte getByte(final String columnLabel); @Override short getShort(final int columnIndex); @Override short getShort(final String columnLabel); @Override int getInt(final int columnIndex); @Override int getInt(final String columnLabel); @Override long getLong(final int columnIndex); @Override long getLong(final String columnLabel); @Override float getFloat(final int columnIndex); @Override float getFloat(final String columnLabel); @Override double getDouble(final int columnIndex); @Override double getDouble(final String columnLabel); @Override String getString(final int columnIndex); @Override String getString(final String columnLabel); @Override BigDecimal getBigDecimal(final int columnIndex); @Override BigDecimal getBigDecimal(final String columnLabel); @Override BigDecimal getBigDecimal(final int columnIndex, final int scale); @Override BigDecimal getBigDecimal(final String columnLabel, final int scale); @Override byte[] getBytes(final int columnIndex); @Override byte[] getBytes(final String columnLabel); @Override Date getDate(final int columnIndex); @Override Date getDate(final String columnLabel); @Override Date getDate(final int columnIndex, final Calendar cal); @Override Date getDate(final String columnLabel, final Calendar cal); @Override Time getTime(final int columnIndex); @Override Time getTime(final String columnLabel); @Override Time getTime(final int columnIndex, final Calendar cal); @Override Time getTime(final String columnLabel, final Calendar cal); @Override Timestamp getTimestamp(final int columnIndex); @Override Timestamp getTimestamp(final String columnLabel); @Override Timestamp getTimestamp(final int columnIndex, final Calendar cal); @Override Timestamp getTimestamp(final String columnLabel, final Calendar cal); @Override InputStream getAsciiStream(final int columnIndex); @Override InputStream getAsciiStream(final String columnLabel); @Override InputStream getUnicodeStream(final int columnIndex); @Override InputStream getUnicodeStream(final String columnLabel); @Override InputStream getBinaryStream(final int columnIndex); @Override InputStream getBinaryStream(final String columnLabel); @Override Reader getCharacterStream(final int columnIndex); @Override Reader getCharacterStream(final String columnLabel); @Override Blob getBlob(final int columnIndex); @Override Blob getBlob(final String columnLabel); @Override Clob getClob(final int columnIndex); @Override Clob getClob(final String columnLabel); @Override URL getURL(final int columnIndex); @Override URL getURL(final String columnLabel); @Override SQLXML getSQLXML(final int columnIndex); @Override SQLXML getSQLXML(final String columnLabel); @Override Object getObject(final int columnIndex); @Override Object getObject(final String columnLabel);  }### Answer:
@Test public void assertNext() throws SQLException { when(mergeResultSet.next()).thenReturn(true); assertTrue(shardingResultSet.next()); }