public static WriteRequest convertToWriteRequest(Log log) {
        return WriteRequest.newBuilder().setKey(log.getKey()).setGroup(log.getGroup())
                .setData(log.getData())
                .setType(log.getType())
                .setOperation(log.getOperation())
                .putAllExtendInfo(log.getExtendInfoMap())
                .build();
    }
@Test
    void testConvertToWriteRequest() {
        ByteString data = ByteString.copyFrom("data".getBytes());
        Log log = Log.newBuilder().setKey("key").setGroup("group").setData(data).setOperation("o").putExtendInfo("k", "v").build();
        WriteRequest writeRequest = ProtoMessageUtil.convertToWriteRequest(log);
        
        assertEquals(1, writeRequest.getExtendInfoCount());
        
        assertEquals(data, writeRequest.getData());
        
        assertEquals("key", writeRequest.getKey());
        
        assertEquals("group", writeRequest.getGroup());
        
        assertEquals("o", writeRequest.getOperation());
    }