@Override
    public Collection<DatabasePacket> execute() {
        connectionSession.getServerPreparedStatementRegistry().<MySQLServerPreparedStatement>getPreparedStatement(packet.getStatementId()).getLongData().clear();
        return Collections.singleton(new MySQLOKPacket(ServerStatusFlagCalculator.calculateFor(connectionSession)));
    }
@Test
    void assertExecute() {
        ConnectionSession connectionSession = mock(ConnectionSession.class);
        when(connectionSession.getServerPreparedStatementRegistry()).thenReturn(new ServerPreparedStatementRegistry());
        when(connectionSession.getTransactionStatus()).thenReturn(new TransactionStatus());
        MySQLServerPreparedStatement preparedStatement = new MySQLServerPreparedStatement("", mock(SQLStatementContext.class), new HintValueContext(), Collections.emptyList());
        preparedStatement.getLongData().put(0, new byte[0]);
        connectionSession.getServerPreparedStatementRegistry().addPreparedStatement(1, preparedStatement);
        MySQLComStmtResetPacket packet = mock(MySQLComStmtResetPacket.class);
        when(packet.getStatementId()).thenReturn(1);
        MySQLComStmtResetExecutor executor = new MySQLComStmtResetExecutor(packet, connectionSession);
        Collection<DatabasePacket> actual = executor.execute();
        assertThat(actual.size(), is(1));
        assertThat(actual.iterator().next(), instanceOf(MySQLOKPacket.class));
        assertTrue(preparedStatement.getLongData().isEmpty());
    }