Decide what the operation is expected to return
Your owned test adapter asks every API response to produce JSON. That can fail after an operation whose documented success has no response body. Before wiring Mail.tm accounts into your cleanup step, choose response handling from the particular Mail.tm operation's contract. A successful empty deletion response and a resource-bearing read need different processing. The parser should not create a failure simply because there is nothing to decode.
Use a fictional cleanup test involving one harmless synthetic message, DEMO-OLD-3. Its purpose is to check how your client processes a supported deletion response after you have finished with that specimen. It is a paper exercise, not an actual destructive operation. The test does not concern recalling an email from someone else or deleting their copy of anything.
Keep the native empty response genuinely empty
Mail.tm’s message deletion documentation specifies a successful 204 response without a response body. Account deletion is also documented with an empty successful response. A normal resource read has its own documented representation. Do not use a universal body parser to erase this distinction, and do not invent a JSON object that the successful deletion contract never promised to return.
In your own client design, record the attempted operation before interpreting its status and body. This lets a reviewer distinguish an expected empty success from an unexpected missing body on a resource-bearing operation. Empty alone is not a result category. The operation and its supported success contract determine whether the client has what it needs to interpret the response.
Trace the fictional parser failure
The simulated test supplies a complete invented response for deleting DEMO-OLD-3: expected successful status, no body. The universal adapter accepts the status, attempts JSON parsing and throws because the supplied body is empty. Its dashboard then labels cleanup failed. That label describes the client's processing mistake, not evidence that the provider rejected the fictional deletion request.
A better adapter branch recognizes the documented response mode and records the expected status without demanding an object. In the simulation, cleanup response accepted is the useful result. It does not prove that a real message disappeared, that a later request will behave identically or that the same operation may safely be repeated. Keep those unsupported conclusions out of the test report.
Add a contrast that prevents a blanket pass
Add a second paper input: a resource read with its expected representation missing. Keep its operation label attached to it. The adapter must report the incomplete read, even though another response in the exercise is a valid empty deletion success. Make the adapter pair each operation with its own status and body requirement before judging either result. Universally accepting empty bodies would conceal the second input’s missing resource.
Also include an unexpected response status for the cleanup operation and keep that branch unresolved or failed according to its supported contract. The correction is specific: handle the known empty success where documented. It is not permission to ignore every parser error, convert every empty response into success or repeat uncertain destructive requests. A useful exercise makes those boundaries visible before any live implementation is considered.
Write a response table per operation
Write a small table for your own adapter with one row per Mail.tm operation it calls: the expected success status and whether a body comes back. Message deletion and account deletion get a success row with no body; a message read and the account read from GET /me get a row that expects a resource. The table is the contract your parser follows, so an empty body is accepted only on the rows that say so.
Keep the table next to the code and update it when you add an operation, instead of assuming every endpoint behaves like the last one you wrote. Use only invented data in the test inputs, keep working credentials out of them, and keep synthetic cleanup away from valuable correspondence or recovery dependencies. No account or message deletion was performed to produce this article.
Keep cleanup errors apart from delivery problems
If you use Mail.tm accounts bought on rStock for this kind of test, read what each listing says it delivers before paying. A parser that throws on a 204 says nothing about the account: the deletion succeeded and the error sits in your client, so it is not a reason to dispute an order. Keep to Mail.tm's published terms for API use, including the visible link back to mail.tm. rStock is independent of Mail.tm, and a category page cannot grant rights that only Mail.tm can give.
The dispute route is for the account itself. If a delivered address and password cannot obtain a token, or the mailbox does not work as the listing described, compare that with the delivery record on your order page and open a dispute within the window shown there. A cleanup error that appears after the account worked is a matter for your adapter.
Accept only the contract the example actually demonstrates
For DEMO-OLD-3, the adapter is right when its own table and tests show why the successful empty response should not be parsed as JSON and how the contrast case remains separate. Your existing allowed tools may already express that distinction. If so, another account adds no value to the parser decision. Fix the client's own response model instead of buying additional credentials to hide its processing error.
Compare Mail.tm account listings when your test plan needs disposable receiving addresses, and fix the response model before the first cleanup runs: accept the documented empty deletion status, and refuse to borrow that rule for an incomplete resource read. Response-contract clarity supports your engineering decision without promising live deletion, repeat safety or provider availability.