public String doGetConfig(HttpServletRequest request, HttpServletResponse response, String dataId, String group,
            String tenant, String tag, String isNotify, String clientIp) throws IOException, ServletException {
        return doGetConfig(request, response, dataId, group, tenant, tag, isNotify, clientIp, false);
    }
@Test
    void testDoGetConfigFormalV2() throws Exception {
        String dataId = "dataId1234552333V2";
        String group = "group";
        String tenant = "tenant";
        configCacheServiceMockedStatic.when(() -> ConfigCacheService.tryConfigReadLock(GroupKey2.getKey(dataId, group, tenant)))
                .thenReturn(1);
        
        //mock cache item .
        CacheItem cacheItem = new CacheItem("test");
        cacheItem.setBeta(false);
        String md5 = "md5wertyui";
        String content = "content345678";
        cacheItem.getConfigCache().setMd5Utf8(md5);
        long ts = System.currentTimeMillis();
        cacheItem.getConfigCache().setLastModifiedTs(ts);
        cacheItem.getConfigCache().setEncryptedDataKey("key2345678");
        configCacheServiceMockedStatic.when(() -> ConfigCacheService.getContentCache(GroupKey.getKeyTenant(dataId, group, tenant)))
                .thenReturn(cacheItem);
        MockHttpServletRequest request = new MockHttpServletRequest();
        MockHttpServletResponse response = new MockHttpServletResponse();
        
        when(configRocksDbDiskService.getContent(dataId, group, tenant)).thenReturn(content);
        String actualValue = configServletInner.doGetConfig(request, response, dataId, group, tenant, null, "true", "localhost", true);
        assertEquals(JacksonUtils.toJson(Result.success(content)), response.getContentAsString());
        assertEquals(HttpServletResponse.SC_OK + "", actualValue);
        assertEquals(md5, response.getHeader(CONTENT_MD5));
        assertEquals("key2345678", response.getHeader("Encrypted-Data-Key"));
        assertEquals(MediaType.APPLICATION_JSON, response.getHeader(HttpHeaderConsts.CONTENT_TYPE));
    }