@Test
public void convert2Proto() {

    GlobalRollbackRequest globalRollbackRequest = new GlobalRollbackRequest();
    globalRollbackRequest.setExtraData("extraData");
    globalRollbackRequest.setXid("xid");
    GlobalRollbackRequestConvertor convertor = new GlobalRollbackRequestConvertor();
    GlobalRollbackRequestProto proto = convertor.convert2Proto(
        globalRollbackRequest);
    GlobalRollbackRequest real = convertor.convert2Model(proto);
    assertThat((real.getTypeCode())).isEqualTo(globalRollbackRequest.getTypeCode());
    assertThat((real.getXid())).isEqualTo(globalRollbackRequest.getXid());
    assertThat((real.getExtraData())).isEqualTo(globalRollbackRequest.getExtraData());
}