I am trying to mock a POST method with MockRestServiceServer in the following way:
MockRestServiceServer
MockRestServiceServer server = bindTo(restTemplate).build(); serv
You can use content().string to verify body:
.andExpect(content().string(expectedContent))
Or content().bytes:
this.mockServer.expect(content().bytes("foo".getBytes())) this.mockServer.expect(content().string("foo"))
this.mockServer.expect(content().bytes("foo".getBytes()))
this.mockServer.expect(content().string("foo"))