@Test
	public void testSwitchOptions() {
		User currUser = getTestUser();
		currUser.setPassword("");
		User temp = new User("temp1", "temp1", "temp1", "temp@nhn.com", Role.USER);
		User admin = getAdminUser();
		userApiController.save(admin, temp);
		currUser.setOwners(Lists.newArrayList(temp));
		currUser.setOwnerUser(temp);
		userApiController.save(currUser, currUser);
		List<User> shareUsers = userApiController.switchOptions(currUser, "");
		assertTrue(shareUsers.contains(temp));
	}
Test method for
{@link UserApiController#checkDuplication(String)}
.
ngrinder-controller/src/test/java/org/ngrinder/user/controller/UserControllerTest.java