### Question:
DataObjectMapperCacheWrapper extends AbstractCacheWrapper implements IDataObjectMapperCacheWrapper { @Override public String getPageCode(String dataId) { DataObjectPageMapper dataObjectPageMapper = this.get(OBJECT_MAPPER_CACHE_KEY, DataObjectPageMapper.class); if (null != dataObjectPageMapper) { return dataObjectPageMapper.getPageCode(dataId); } return null; }  @Override void initCache(IPageManager pageManager); @Override String getPageCode(String dataId);  }### Answer:
@Test public void testGetPageCode() { DataObjectPageMapper dataObjectPageMapper = new DataObjectPageMapper(); dataObjectPageMapper.add("dataId", "temp_model"); dataObjectPageMapper.add("dataId2", "wring_page"); Mockito.when(valueWrapper.get()).thenReturn(dataObjectPageMapper); Mockito.when(cache.get(Mockito.anyString())).thenReturn(valueWrapper); Mockito.when(cacheManager.getCache(Mockito.anyString())).thenReturn(this.cache); String pageCode = this.cacheWrapper.getPageCode("dataId"); assertNotNull(pageCode); assertEquals("temp_model", pageCode); }