@Test
	public void testUpdate() {
		// test update the role of current user.
		User currUser = getTestUser();
		assertThat(currUser.getRole(), is(Role.USER)); // current test user is "USER"

		User updatedUser = new User(currUser.getUserId(), currUser.getUserName(), "",
				"temp@nhn.com", currUser.getRole());
		updatedUser.setId(currUser.getId());
		updatedUser.setEmail("test@test.com");
		updatedUser.setRole(Role.ADMIN); // Attempt to modify himself as ADMIN
		userApiController.save(currUser, updatedUser);

		User user = userApiController.getOne(currUser.getUserId());
		assertThat(user.getUserName(), is(currUser.getUserName()));
		assertThat(user.getPassword(), is(currUser.getPassword()));
		assertThat(user.getRole(), is(Role.USER));
	}
Test method for
{@link org.ngrinder.user.controller.UserApiController#save(org.ngrinder.model.User,
org.ngrinder.model.User)}
.
ngrinder-controller/src/test/java/org/ngrinder/user/controller/UserControllerTest.java