@Override
    public <T> byte[] serialize(T data) {
        return JacksonUtils.toJsonBytes(data);
    }
@Test
    void testSerialize() {
        String actual = new String(serializer.serialize(switchDomain));
        assertTrue(actual.contains("\"defaultPushCacheMillis\":10000"));
        assertTrue(actual.contains("\"clientBeatInterval\":5000"));
        assertTrue(actual.contains("\"defaultCacheMillis\":3000"));
        assertTrue(actual.contains("\"distroEnabled\":true"));
    }