@Test
public void convert2Proto() {

    GlobalLockQueryResponse globalLockQueryResponse = new GlobalLockQueryResponse();
    globalLockQueryResponse.setLockable(true);
    globalLockQueryResponse.setMsg("msg");
    globalLockQueryResponse.setResultCode(ResultCode.Failed);
    globalLockQueryResponse.setTransactionExceptionCode(TransactionExceptionCode.GlobalTransactionNotActive);
    GlobalLockQueryResponseConvertor convertor = new GlobalLockQueryResponseConvertor();
    GlobalLockQueryResponseProto proto = convertor.convert2Proto(
        globalLockQueryResponse);
    GlobalLockQueryResponse real = convertor.convert2Model(proto);
    assertThat((real.getTypeCode())).isEqualTo(globalLockQueryResponse.getTypeCode());
    assertThat((real.getMsg())).isEqualTo(globalLockQueryResponse.getMsg());
    assertThat((real.getResultCode())).isEqualTo(globalLockQueryResponse.getResultCode());
    assertThat((real.getTransactionExceptionCode())).isEqualTo(
        globalLockQueryResponse.getTransactionExceptionCode());
}