How to disable JsonProperty or JsonIgnore on test
问题 If there a way to disable @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) or @JsonIgnore on testing? I am trying to test my createUser() but I need user.getPassword() method be enabled when I parse my User object. If I comment the @JsonProperty line it works but if that I do so, the password field will be returned on GET /users or GET /users/{id} method. Here is my test @Test public void createUser() throws Exception { User user = UserFactory.newUser(); String userJson = objectMapper