To check if a single raw transaction makes it into the current transaction pool, one had to call sendrawtransaction. However, on success, this adds the transaction to the mempool with no easy way to undo.
The call testmempoolaccept is introduced to provide a way to solely check the result without changing the mempool state.