@Test
public void testUserIdChange() throws Exception {

	assertEquals(0, new UserDAO().getCount());
	assertEquals(simpleUser.getUserId(), userService.getCurrentUser().getUserId());
	assertEquals(1, new UserDAO().getCount());
	// simulate same user with different capitalization
	requestMock = new HttpServletRequestMock(new User(simpleUser.getUserId().toUpperCase(Locale.ENGLISH),
			simpleUser.getEmail().toUpperCase(Locale.ENGLISH)));
	userService.request = requestMock;
	assertEquals(simpleUser.getUserId().toUpperCase(), userService.getCurrentUser().getUserId());
	assertEquals(1, new UserDAO().getCount());
}