I'm testing my endpoints like so:
webTestClient.get().uri(BASE_URL).
.exchange().expectStatus().isOk().expectBody()
.jsonPath("$.name").isEqualTo("test1")
.jsonPath("$.street").isEqualTo("test1")
.jsonPath("$.id").isEqualTo(1);
Is there any way I can make sure that the json has only those 3 fields and not more?