@Test
public void convert2Proto() {

    BranchReportResponse branchReportResponse = new BranchReportResponse();
    branchReportResponse.setMsg("msg");
    branchReportResponse.setResultCode(ResultCode.Failed);
    branchReportResponse.setTransactionExceptionCode(TransactionExceptionCode.GlobalTransactionNotExist);
    BranchReportResponseConvertor convertor = new BranchReportResponseConvertor();
    BranchReportResponseProto proto = convertor.convert2Proto(branchReportResponse);
    BranchReportResponse real = convertor.convert2Model(proto);
    assertThat((real.getTypeCode())).isEqualTo(branchReportResponse.getTypeCode());
    assertThat((real.getMsg())).isEqualTo(branchReportResponse.getMsg());
    assertThat((real.getResultCode())).isEqualTo(branchReportResponse.getResultCode());
    assertThat((real.getTransactionExceptionCode())).isEqualTo(branchReportResponse.getTransactionExceptionCode());
}