@Test
public void convert2Proto() {

    GlobalStatusRequest globalStatusRequest = new GlobalStatusRequest();
    globalStatusRequest.setExtraData("extraData");
    globalStatusRequest.setXid("xid");
    GlobalStatusRequestConvertor convertor = new GlobalStatusRequestConvertor();
    GlobalStatusRequestProto proto = convertor.convert2Proto(
        globalStatusRequest);
    GlobalStatusRequest real = convertor.convert2Model(proto);
    assertThat((real.getTypeCode())).isEqualTo(globalStatusRequest.getTypeCode());
    assertThat((real.getXid())).isEqualTo(globalStatusRequest.getXid());
    assertThat((real.getExtraData())).isEqualTo(globalStatusRequest.getExtraData());
}