@Test
public void testEdit() throws Exception {

    // so request.getRequestURL() doesn't fail
    MockHttpServletRequest request = new MockHttpServletRequest("GET", "/editUser.html");
    ServletActionContext.setRequest(request);
    action.setId("-1"); // regular user
    assertNull(action.getUser());
    assertEquals("success", action.edit());
    assertNotNull(action.getUser());
    assertFalse(action.hasActionErrors());
}