So I have a method (which compares JSON headers with HTTP headers and returns true if they match, else it returns false) against which I am trying to run a unit test written in Mockito. The method is as follows:
My unit test is as follows:
The test does not produce an output and instead is stuck in an infinite loop. Any reason why? Please help me.