UserRegistration registration = new UserRegistration(1234, "5555");
Mockito.when(registrationService.getRegistrationForUserIndexKey(key)).thenReturn(
registration);
UserPropertiesService userPropertiesService = Mockito.mock(UserPropertiesService.class);
_service.setUserPropertiesService(userPropertiesService);
User userB = createUser(1235);
UserIndex index = createUserIndex(key.getType(), key.getValue(), userB);