### Question:
CacheInfoManager extends AbstractService implements ICacheInfoManager, PageChangedObserver { @Override public void updateFromPageChanged(PageChangedEvent event) { IPage page = event.getPage(); if (null != page) { String pageCacheGroupName = SystemConstants.PAGES_CACHE_GROUP_PREFIX + page.getCode(); this.flushGroup(DEFAULT_CACHE_NAME, pageCacheGroupName); } }  @Override void init(); @Around("@annotation(cacheableInfo)") Object aroundCacheableMethod(ProceedingJoinPoint pjp, CacheableInfo cacheableInfo); @Around("@annotation(cacheInfoEvict)") Object aroundCacheInfoEvictMethod(ProceedingJoinPoint pjp, CacheInfoEvict cacheInfoEvict); void setExpirationTime(String targetCache, String key, int expiresInMinute); void setExpirationTime(String targetCache, String key, long expiresInSeconds); void setExpirationTime(String targetCache, String key, Date expirationTime); @Override void updateFromPageChanged(PageChangedEvent event); @Override void destroy(); void flushAll(); void flushAll(String cacheName); @Override void flushEntry(String targetCache, String key); void putInCache(String targetCache, String key, Object obj); void putInCache(String targetCache, String key, Object obj, String[] groups); @Override void putInGroup(String targetCache, String key, String[] groups); @Override void flushGroup(String targetCache, String group); @Override boolean isExpired(String targetCache, String key); Object getFromCache(String targetCache, String key); void setSpringCacheManager(CacheManager springCacheManager);  }### Answer:
@Test public void updateFromPageChanged() { PageChangedEvent event = new PageChangedEvent(); Page page = new Page(); page.setCode("code"); event.setPage(page); cacheInfoManager.updateFromPageChanged(event); Mockito.verify(cache, Mockito.times(1)).get(Mockito.anyString()); Mockito.verify(cache, Mockito.times(0)).put(Mockito.anyString(), Mockito.any(Map.class)); Object requiredMap = cacheInfoManager.getFromCache(ICacheInfoManager.CACHE_INFO_MANAGER_CACHE_NAME, ICacheInfoManager.GROUP_CACHE_NAME_PREFIX + ICacheInfoManager.CACHE_INFO_MANAGER_CACHE_NAME); assertTrue(requiredMap instanceof Map); assertNotNull(requiredMap); assertEquals(2, ((Map) requiredMap).size()); }