@Test
public void resetPassword() throws Exception {

    User user = _userRepo.findOneByUsername("testuser-editor");
    Assert.assertNotNull(user);
    this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
    this.mockHttpSession = loginAsAdmin();
    this.mockMvc.perform(post("/srv/api/users/" + user.getId() + "/actions/forget-password")
        .param("password", "newpassword")
        .param("password2", "newpassword")
        .contentType(API_JSON_EXPECTED_ENCODING)
        .session(this.mockHttpSession)
        .accept(MediaType.parseMediaType("application/json")))
        .andExpect(status().is(204));
}