MySQLComStmtClosePacket extends MySQLCommandPacket { public void removeCachedStatement() { MySQLBinaryStatementRegistry.getInstance().remove(statementId); } MySQLComStmtClosePacket(final MySQLPacketPayload payload); void removeCachedStatement();  }
@Test public void assertRemoveCachedStatement() { when(payload.readInt4()).thenReturn(1); MySQLComStmtClosePacket actual = new MySQLComStmtClosePacket(payload); actual.removeCachedStatement(); }