I wanted to test a scenario where: For the first x calls respond with y Then for x+1 respond with z Wiremock by itself doesn't provide a direct way to to stub different responses akin to Mockito's thenReturn or Spock's multiple stubs. Wiremock however provides a ResponseTransformer. I used…