userDao.getUserCache() must be called instead of Registry.instance.getUserCache() for test cases (userDao is mocked).
UserGroupCache -> UserCache.