2 answers
Hi Anna Suganthi,Make sure that your Expected and Actual Value should be the same, check that spy.getHttpRequest().getBody() will return null if you expect the null.you can get help from this :https://help.salesforce.com/articleView?id=000318949&type=1&mode=1 (https://help.salesforce.com/articleView?id=000318949&type=1&mode=1)https://developer.salesforce.com/forums/?id=906F0000000AhESIA0If you find your Solution then mark this as the best answer.Thank you!Regards,Suraj Tripathi