diff --git a/repeater-plugin-core/src/test/java/com/alibaba/jvm/sandbox/repeater/plugin/core/serialize/HessianSerializerTest.java b/repeater-plugin-core/src/test/java/com/alibaba/jvm/sandbox/repeater/plugin/core/serialize/HessianSerializerTest.java
index b42a7329..e56a0bd4 100644
--- a/repeater-plugin-core/src/test/java/com/alibaba/jvm/sandbox/repeater/plugin/core/serialize/HessianSerializerTest.java
+++ b/repeater-plugin-core/src/test/java/com/alibaba/jvm/sandbox/repeater/plugin/core/serialize/HessianSerializerTest.java
@@ -1,8 +1,16 @@
package com.alibaba.jvm.sandbox.repeater.plugin.core.serialize;
+import com.alibaba.jvm.sandbox.repeater.plugin.core.wrapper.SerializerWrapper;
+import com.alibaba.jvm.sandbox.repeater.plugin.domain.MockInvocation;
import org.testng.Assert;
import org.testng.annotations.Test;
+import java.util.ArrayList;
+import java.util.GregorianCalendar;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
/**
* {@link }
*
@@ -41,4 +49,34 @@ public void deserialize() {
Assert.fail(e.getMessage());
}
}
+
+ @Test
+ public void serializeSpec() {
+ List list = new ArrayList<>();
+ MockInvocation m1 = new MockInvocation();
+ MockInvocation m2 = new MockInvocation();
+ list.add(m1);
+ list.add(m2);
+
+ Object[] org = new Object[1];
+ org[0] = new GregorianCalendar();
+ m1.setCurrentArgs(org);
+
+ Object xxx = new Object();
+
+ Map map = new HashMap<>();
+ map.put("xx", xxx);
+ map.put("jj", xxx);
+ Object[] ol = new Object[1];
+ ol[0] = map;
+ m2.setCurrentArgs(ol);
+
+ try {
+ String ens = SerializerWrapper.hessianSerialize(list);
+ SerializerWrapper.hessianDeserialize(ens);
+ } catch (SerializeException e) {
+ Assert.assertNull(e);
+ }
+ Assert.assertTrue(true);
+ }
}
\ No newline at end of file