According to my design, Method#2 of ClassB sends the request details to Method#1 of ClassA.
Method#1 is a generic method that does the main job of processing/posting the input HttpRequest (of any type i.e. POST, PUT, GET etc.) and return an output HttpResponse. You can think of this method as a common util that will be used by many classes.
So, in method#1, I am trying to log the request and the response.
In method#2, once I get back the HttpResponse, I want to make specific assertions against the request sent and response received.
That is why I am trying to trying to do the String conversion twice.