@Test
public void testGetMessageType() throws Exception {

    Method method = EchoService.class.getMethod("echo", Echo.EchoRequest.class);
    ProtobufUtils.MessageType messageType = ProtobufUtils.getMessageType(method);
    Assert.assertTrue(messageType == ProtobufUtils.MessageType.PROTOBUF);
    Method method2 = com.baidu.brpc.protocol.jprotobuf.EchoService.class.getMethod("echo", EchoRequest.class);
    ProtobufUtils.MessageType messageType2 = ProtobufUtils.getMessageType(method2);
    Assert.assertTrue(messageType2 == ProtobufUtils.MessageType.JPROTOBUF);
}