@Test
public void testTransitionUserIndex() {
User userA = new User();
userA.setCreationTime(new Date());
userA.setProperties(new UserPropertiesV2());
UserIndex index = new UserIndex();
index.setId(new UserIndexKey("test", "A"));
index.setUser(userA);
userA.getUserIndices().add(index);
_dao.saveOrUpdateUser(userA);
User userB = new User();
userB.setCreationTime(new Date());
userB.setProperties(new UserPropertiesV2());
_dao.saveOrUpdateUser(userB);
assertEquals(1, _dao.getUserForId(userA.getId()).getUserIndices().size());
assertEquals(0, _dao.getUserForId(userB.getId()).getUserIndices().size());