@Test
public void convert2Proto() {

    RegisterRMResponse registerRMResponse = new RegisterRMResponse();
    registerRMResponse.setResultCode(ResultCode.Failed);
    registerRMResponse.setMsg("msg");
    registerRMResponse.setIdentified(true);
    registerRMResponse.setVersion("11");
    registerRMResponse.setExtraData("extraData");
    RegisterRMResponseConvertor convertor = new RegisterRMResponseConvertor();
    RegisterRMResponseProto proto = convertor.convert2Proto(registerRMResponse);
    RegisterRMResponse real = convertor.convert2Model(proto);
    assertThat((real.getTypeCode())).isEqualTo(registerRMResponse.getTypeCode());
    assertThat((real.getMsg())).isEqualTo(registerRMResponse.getMsg());
    assertThat((real.getResultCode())).isEqualTo(registerRMResponse.getResultCode());
    assertThat((real.isIdentified())).isEqualTo(registerRMResponse.isIdentified());
    assertThat((real.getVersion())).isEqualTo(registerRMResponse.getVersion());
    assertThat((real.getExtraData())).isEqualTo(registerRMResponse.getExtraData());
}