### Question:
PGShardingQueryResultContext extends ShardingQueryResultContext { @Override public void sendAndFlush2Client() { throw new RuntimeException("Called sendAndFlush2Client in PGShardingQueryResultContext"); }  @Override void addRowDescription(byte[] rowDescription); @Override void addCommandComplete(byte[] commandComplete); @Override void addReadyForQuery(byte[] readyForQuery); @Override void addRow(byte[] row); @Override void sendAndFlush2Client();  }### Answer:
@Test(expectedExceptions = RuntimeException.class, expectedExceptionsMessageRegExp = "Called .* in PGShardingQueryResultContext") public void testSendAndFlush2Client() throws Exception { PGShardingQueryResultContext sqrc = new PGShardingQueryResultContext(); sqrc.sendAndFlush2Client(); }