private static void jetConfig(XmlGenerator gen, Config config) {
        JetConfig jetConfig = config.getJetConfig();
        EdgeConfig edgeConfig = jetConfig.getDefaultEdgeConfig();
        gen.open("jet", "enabled", jetConfig.isEnabled(), "resource-upload-enabled", jetConfig.isResourceUploadEnabled())
                .node("cooperative-thread-count", jetConfig.getCooperativeThreadCount())
                .node("flow-control-period", jetConfig.getFlowControlPeriodMs())
                .node("backup-count", jetConfig.getBackupCount())
                .node("scale-up-delay-millis", jetConfig.getScaleUpDelayMillis())
                .node("lossless-restart-enabled", jetConfig.isLosslessRestartEnabled())
                .node("max-processor-accumulated-records", jetConfig.getMaxProcessorAccumulatedRecords())
                .open("edge-defaults")
                    .node("queue-size", edgeConfig.getQueueSize())
                    .node("packet-size-limit", edgeConfig.getPacketSizeLimit())
                    .node("receive-window-multiplier", edgeConfig.getReceiveWindowMultiplier())
                .close()
            .close();
    }
@Test
    public void testJetConfig() {
        Config config = new Config();
        JetConfig jetConfig = config.getJetConfig();
        jetConfig.setEnabled(false).setResourceUploadEnabled(true);
        jetConfig.setLosslessRestartEnabled(true)
                .setScaleUpDelayMillis(123)
                .setBackupCount(2)
                .setFlowControlPeriodMs(123)
                .setCooperativeThreadCount(123);

        jetConfig.getDefaultEdgeConfig()
                .setReceiveWindowMultiplier(123)
                .setPacketSizeLimit(123)
                .setQueueSize(123);

        Config newConfig = getNewConfigViaXMLGenerator(config);
        assertEquals(jetConfig, newConfig.getJetConfig());
    }