@Test
public void test_codec() {

    RegisterRMRequest registerRMRequest = new RegisterRMRequest();
    registerRMRequest.setResourceIds("a1,a2");
    registerRMRequest.setApplicationId("abc");
    registerRMRequest.setExtraData("abc124");
    registerRMRequest.setTransactionServiceGroup("def");
    registerRMRequest.setVersion("1");
    byte[] body = seataCodec.encode(registerRMRequest);
    RegisterRMRequest registerRMRequest2 = seataCodec.decode(body);
    assertThat(registerRMRequest2.getResourceIds()).isEqualTo(registerRMRequest.getResourceIds());
    assertThat(registerRMRequest2.getExtraData()).isEqualTo(registerRMRequest.getExtraData());
    assertThat(registerRMRequest2.getApplicationId()).isEqualTo(registerRMRequest.getApplicationId());
    assertThat(registerRMRequest2.getVersion()).isEqualTo(registerRMRequest.getVersion());
    assertThat(registerRMRequest2.getTransactionServiceGroup()).isEqualTo(registerRMRequest.getTransactionServiceGroup());
}