If time to execute the two requests in RequestContextTest is less then 1 ms test will fail. There has to be Thread.sleep(1) between the two requests will guarantee the test will pass.