@SuppressWarnings("unchecked")
	@Test
	public void testDelete() {
		// save new user for test
		saveTestUser("NewUserId1", "NewUserName1");
		saveTestUser("NewUserId2", "NewUserName2");
		saveTestUser("NewUserId3", "NewUserName3");

		Pageable page = PageRequest.of(0, 10);

		// search
		Page<User> userList = userApiController.getAll(null, page, "NewUserName");
		assertThat(userList.getContent().size(), is(3));

		// test to delete one
		userApiController.delete(testUser, "NewUserId1");
		userList = userApiController.getAll(Role.USER, page, "NewUserName");
		assertThat(userList.getContent().size(), is(2));

		// test to delete more
		userApiController.deleteUsers(testUser, "NewUserId2,NewUserId3");
		userList = userApiController.getAll(Role.USER, page, "NewUserName");
		assertThat(userList.getContent().size(), is(0));
	}
Test method for
{@link org.ngrinder.user.controller.UserApiController#delete(org.ngrinder.model.User user, java.lang.String)}
.
ngrinder-controller/src/test/java/org/ngrinder/user/controller/UserControllerTest.java