MySQLComStmtResetExecutor implements CommandExecutor { @Override public Collection<DatabasePacket<?>> execute() { return Collections.singletonList(new MySQLOKPacket(1)); }  @Override Collection<DatabasePacket<?>> execute();  }
@Test public void assertExecute() { MySQLComStmtResetExecutor mysqlComStmtResetExecutor = new MySQLComStmtResetExecutor(packet); Collection<DatabasePacket<?>> actual = mysqlComStmtResetExecutor.execute(); assertThat(actual.size(), is(1)); assertThat(actual.iterator().next(), instanceOf(MySQLOKPacket.class)); }