public void dump(DumpRequest dumpRequest) {
        if (dumpRequest.isBeta()) {
            dumpBeta(dumpRequest.getDataId(), dumpRequest.getGroup(), dumpRequest.getTenant(),
                    dumpRequest.getLastModifiedTs(), dumpRequest.getSourceIp());
        } else if (dumpRequest.isBatch()) {
            dumpBatch(dumpRequest.getDataId(), dumpRequest.getGroup(), dumpRequest.getTenant(),
                    dumpRequest.getLastModifiedTs(), dumpRequest.getSourceIp());
        } else if (StringUtils.isNotBlank(dumpRequest.getTag())) {
            dumpTag(dumpRequest.getDataId(), dumpRequest.getGroup(), dumpRequest.getTenant(), dumpRequest.getTag(),
                    dumpRequest.getLastModifiedTs(), dumpRequest.getSourceIp());
        } else {
            dumpFormal(dumpRequest.getDataId(), dumpRequest.getGroup(), dumpRequest.getTenant(),
                    dumpRequest.getLastModifiedTs(), dumpRequest.getSourceIp());
        }
    }
@Test
    void dumpRequest() throws Throwable {
        String dataId = "12345667dataId";
        String group = "234445group";
        DumpRequest dumpRequest = DumpRequest.create(dataId, group, "testtenant", System.currentTimeMillis(), "127.0.0.1");
        // TaskManager dumpTaskMgr;
        ReflectionTestUtils.setField(dumpService, "dumpTaskMgr", dumpTaskMgr);
        Mockito.doNothing().when(dumpTaskMgr).addTask(any(), any());
        dumpService.dump(dumpRequest);
        Mockito.verify(dumpTaskMgr, times(1))
                .addTask(eq(GroupKey.getKeyTenant(dataId, group, dumpRequest.getTenant())), any(DumpTask.class));
        dumpRequest.setBeta(true);
        dumpService.dump(dumpRequest);
        Mockito.verify(dumpTaskMgr, times(1))
                .addTask(eq(GroupKey.getKeyTenant(dataId, group, dumpRequest.getTenant()) + "+beta"), any(DumpTask.class));
        dumpRequest.setBeta(false);
        dumpRequest.setBatch(true);
        dumpService.dump(dumpRequest);
        Mockito.verify(dumpTaskMgr, times(1))
                .addTask(eq(GroupKey.getKeyTenant(dataId, group, dumpRequest.getTenant()) + "+batch"), any(DumpTask.class));
        dumpRequest.setBatch(false);
        dumpRequest.setTag("testTag111");
        dumpService.dump(dumpRequest);
        Mockito.verify(dumpTaskMgr, times(1))
                .addTask(eq(GroupKey.getKeyTenant(dataId, group, dumpRequest.getTenant()) + "+tag+" + dumpRequest.getTag()),
                        any(DumpTask.class));
        
    }