I have been writing some simple unit testing routines for a simple spring web application. When I add @JsonIgnore annotation on a getter method of a resource, the resulting json
doesNotHaveJsonPath for checking that it is not in json body
doesNotHaveJsonPath