title: How to disable JsonProperty or JsonIgnore on test
body: <p>If there a way to disable <code>@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)</code> or <code>@JsonIgnore</code> on testing?</p>
  
  <p>I am trying to test my <code>createUser()</code> but I need <code>user.getPassword()</code> method be enabled when I parse my <code>User</code> object.</p>
  
  <p>If I comment the <code>@JsonProperty</code> line it works but if that I do so, the password field will be returned on <code>GET /users or GET /users/{id}</code> method. </p>
  
  <p>Here is my test</p>
  
  <pre><code>@Test
  public void createUser() throws Exception {
      User user = UserFactory.newUser();
      String userJson = objectMapper.writeValueAsString(user);
  
      LOGGER.info("User to register: " + userJson);
  
      mockMvc.perform(post("/users")
              .content(userJson)
              .contentType(contentType))
              .andExpect(status().isCreated())
              .andExpect(jsonPath("$.id", is(notNullValue())));
  }
  </code></pre>
  
  <p>The method that create a new user:</p>
  
  <pre><code>public static User newUser() {
      Fairy fairy = Fairy.create();
      Person person = fairy.person();
  
      User user = new User();
      user.setName(person.getFirstName());
      user.setLastName(person.getLastName());
      user.setEmail(person.getEmail());
      user.setUsername(person.getUsername());
      user.setPassword(person.getPassword());
      user.setSex(person.isMale() ? User.Sex.MALE : User.Sex.FEMALE);
      user.setPhone(person.getTelephoneNumber());
      user.setCountry(person.getAddress().getCity());
  
      return user;
  }
  </code></pre>
  
  <p>This is the json it got after serialize <code>User</code> object with the <code>ObjectMapper</code>: </p>
  
  <pre><code>{
      "createdAt" : null,
      "updatedAt" : null,
      "name" : "Jasmine",
      "lastName" : "Neal",
      "email" : "jasmineneal@yahoo.com",
      "username" : "jasminen",
      "sex" : "FEMALE",
      "phone" : "321-104-989",
      "country" : "San Francisco"
  }
  </code></pre>
  
  <p><strong>UserController.class method</strong></p>
  
  <pre><code>@RequestMapping(method = RequestMethod.POST)
  public ResponseEntity store(@Valid @RequestBody User user) {
      userService.store(user);
      return new ResponseEntity&lt;Object&gt;(user, HttpStatus.CREATED);
  }
  </code></pre>
  
  <p><strong>User.class property</strong></p>
  
  <pre><code>@Column(name = "password", length = 100)
  @NotNull(message = "error.password.notnull")
  @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) // If I comment this, it works
  private String password;
  </code></pre>
  
  <p>Is it a workaround for this? </p>