### Question:
MysqlShardingResultSet extends ShardingResultSet { @Override public void addReadyForQuery(byte[] readForQuery) { throw new RuntimeException("Called addReadyForQuery in MysqlShardingResultSet"); } MysqlShardingResultSet(List<AggregateFunc> columnAggeTypes, boolean isGroupBy); @Override void addCommandComplete(byte[] commandComplete); @Override void addReadyForQuery(byte[] readForQuery); @Override List<byte[]> toPartPackets(boolean withEOF);  }### Answer:
@Test(expectedExceptions = RuntimeException.class, expectedExceptionsMessageRegExp = "Called .* in MysqlShardingResultSet") public void testAddReadyForQuery() throws Exception { ShardingResultSet resultSet = new MysqlShardingResultSet(Collections.emptyList(), false); resultSet.addReadyForQuery(new byte[0]); }