source: class HessianCodecTest {
  
      @Test
      void encode() {
  
target:         TestData data = new TestData("hello");
  
          Map<String, String> header = new HashMap<>();
          header.put("key1", "hi");
          Message message = new Message(header, data);
          Crypt c = CryptFactory.createCrypt("DES", "1");
  
          HessianCodec codec = new HessianCodec(c);
          Payload payload = codec.encode(message);
  
          Message messageNew = codec.decode(payload);
  
          assertEquals("hello", ((TestData)messageNew.getData()).getInner());
          assertEquals("hi", messageNew.getHeader("key1"));
      }
  
  }