}.run();
new FacesRequest("/wiki.xhtml") {
protected void invokeApplication() throws Exception {
UserPasswordReset reset = (UserPasswordReset)getInstance(UserPasswordReset.class);
reset.setPassword("foo123");
reset.setPasswordControl("foo123");
reset.reset();
}
protected void renderResponse() throws Exception {
User user = (User)getInstance(UserPasswordReset.RESET_PASSWORD_OF_USER);
assert user == null;