@Test
public void convert2Proto() {

    GlobalBeginRequest globalBeginRequest = new GlobalBeginRequest();
    globalBeginRequest.setTimeout(3000);
    globalBeginRequest.setTransactionName("taa");
    GlobalBeginRequestConvertor convertor = new GlobalBeginRequestConvertor();
    GlobalBeginRequestProto proto = convertor.convert2Proto(globalBeginRequest);
    GlobalBeginRequest real = convertor.convert2Model(proto);
    assertThat(real.getTypeCode()).isEqualTo(globalBeginRequest.getTypeCode());
    assertThat(real.getTimeout()).isEqualTo(globalBeginRequest.getTimeout());
    assertThat(real.getTransactionName()).isEqualTo(globalBeginRequest.getTransactionName());
}