@Test
public void testParseSerializeType() throws Exception {

    ConsumerConfig consumerConfig = new ConsumerConfig().setProtocol("bolt");
    ConsumerBootstrap bootstrap = Bootstraps.from(consumerConfig);
    BoltClientProxyInvoker invoker = new BoltClientProxyInvoker(bootstrap);
    byte actual = invoker.parseSerializeType(RpcConstants.SERIALIZE_HESSIAN2);
    assertEquals(RemotingConstants.SERIALIZE_CODE_HESSIAN, actual);
}