### Question:
MysqlShardingResultSet extends ShardingResultSet { @Override public void addCommandComplete(byte[] commandComplete) { throw new RuntimeException("Called addCommandComplete 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 testAddCommandComplete() throws Exception { ShardingResultSet resultSet = new MysqlShardingResultSet(Collections.emptyList(), false); resultSet.addCommandComplete(new byte[0]); }