### Question:
MysqlResponseClassifier extends ResponseClassifier { @Override public void setCommandComplete(byte[] commandComplete) { throw new RuntimeException("unsupport call `setCommandComplete` during MySQL protocol"); }  @Override Optional<byte[]> getCommandComplete(); @Override void setCommandComplete(byte[] commandComplete); @Override Optional<byte[]> getReadyForQuery(); @Override void setReadyForQuery(byte[] readyForQuery); @Override List<byte[]> toPackets(); public long sequenceId; }### Answer:
@Test(expectedExceptions = RuntimeException.class, expectedExceptionsMessageRegExp = "unsupport call `\\w+` during MySQL protocol") public void testCallUnsuppportSetCommandComplete() throws Exception { ResponseClassifier responseClassifier = new MysqlResponseClassifier(); responseClassifier.setCommandComplete(new byte[0]); }