@Test
public void testParseFrom2() {

    Echo.EchoRequest request = Echo.EchoRequest.newBuilder().setMessage("hello").build();
    byte[] bytes = request.toByteArray();
    InputStream inputStream = new ByteBufInputStream(Unpooled.wrappedBuffer(bytes));
    Echo.EchoRequest request1 = (Echo.EchoRequest) ProtobufUtils.parseFrom(inputStream, request.getClass());
    Assert.assertTrue(request1.getMessage().equals(request.getMessage()));
}