See attached test. To repro untar:
$ mvn tc:start
$ mvn tc:run
$ mvn tc:run
The second run will attempt to read the object (a hand coded linked list 5 elements long) and clone it. It will print the read object, and the cloned object. Here are the results:
[INFO] [node] org.terracotta.sample.Main$
Linked@5e32f9 : org.terracotta.sample.Main$
Linked@5e32f9 : org.terracotta.sample.Main$
Linked@5e32f9 : org.terracotta.sample.Main$
Linked@5e32f9 : org.terracotta.sample.Main$
Linked@5e32f9 : org.terracotta.sample.Main$
Linked@5e32f9
[INFO] [node] org.terracotta.sample.Main$
Linked@55c37d
The second output should have been 5 elements long like the first.